Fix Display command

- Fixed display command when used in console
This commit is contained in:
Benford 2015-11-15 19:26:30 -05:00
parent 9ef63df3a7
commit 9603a98d7e

View file

@ -112,7 +112,11 @@ 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);
}
}