mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Cleaned up scoreboard team color/prefix/suffix code and correctly ordered the layout
This commit is contained in:
parent
ddaac88f39
commit
3edd1248ef
@ -53,8 +53,11 @@ public abstract class DisguiseBaseCommand implements CommandExecutor {
|
||||
protected String getDisplayName(CommandSender player) {
|
||||
Team team = ((Player) player).getScoreboard().getEntryTeam(player.getName());
|
||||
|
||||
return (team == null ? "" : team.getColor() + team.getPrefix()) + player.getName() +
|
||||
(team == null ? "" : team.getSuffix());
|
||||
if (team == null) {
|
||||
return player.getName();
|
||||
}
|
||||
|
||||
return team.getPrefix() + team.getColor() + player.getName() + team.getSuffix();
|
||||
}
|
||||
|
||||
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {
|
||||
|
Loading…
Reference in New Issue
Block a user