mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 03:30:02 +00:00
Cleaned up scoreboard team color/prefix/suffix code and correctly ordered the layout
This commit is contained in:
parent
ddaac88f39
commit
3edd1248ef
1 changed files with 5 additions and 2 deletions
|
@ -53,8 +53,11 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
|
||||||
protected String getDisplayName(CommandSender player) {
|
protected String getDisplayName(CommandSender player) {
|
||||||
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
||||||
|
|
||||||
return (team == null ? "" : team.getColor() + team.getPrefix()) + player.getName() +
|
if (team == null) {
|
||||||
(team == null ? "" : team.getSuffix());
|
return player.getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
return team.getPrefix() + team.getColor() + player.getName() + team.getSuffix();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
|
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
|
||||||
|
|
Loading…
Reference in a new issue