From 2e969b90bfc7ac826b1ad272c0166d5de2ac4a07 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 25 Jan 2019 17:14:40 +1300 Subject: [PATCH] Fixed #335 --- .../libraryaddict/disguise/commands/DisguiseBaseCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java b/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java index 378e3ab2..0e7c7b5c 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java +++ b/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java @@ -53,7 +53,8 @@ public abstract class DisguiseBaseCommand implements CommandExecutor { protected String getDisplayName(CommandSender player) { 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 getAllowedDisguises(DisguisePermissions permissions) {