diff --git a/src/com/projectkorra/projectkorra/command/DisplayCommand.java b/src/com/projectkorra/projectkorra/command/DisplayCommand.java index 50525502..46acf05b 100644 --- a/src/com/projectkorra/projectkorra/command/DisplayCommand.java +++ b/src/com/projectkorra/projectkorra/command/DisplayCommand.java @@ -112,10 +112,14 @@ public class DisplayCommand extends PKCommand { return; } for (String ability : abilities) { - if (GeneralMethods.canView((Player) sender, ability)) { + if (sender instanceof Player) { + if (GeneralMethods.canView((Player) sender, ability)) { + sender.sendMessage(GeneralMethods.getAvatarColor() + ability); + } + } else { sender.sendMessage(GeneralMethods.getAvatarColor() + ability); } - } + } } /**