This commit is contained in:
libraryaddict 2019-01-25 17:14:40 +13:00
parent 23e63a5a63
commit 2e969b90bf

View File

@ -53,7 +53,8 @@ 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.getPrefix()) + player.getName() + (team == null ? "" : team.getSuffix()); return (team == null ? "" : team.getColor() + team.getPrefix()) + player.getName() +
(team == null ? "" : team.getSuffix());
} }
protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) { protected ArrayList<String> getAllowedDisguises(DisguisePermissions permissions) {