mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Fix Display command
- Fixed display command when used in console
This commit is contained in:
parent
9ef63df3a7
commit
9603a98d7e
1 changed files with 6 additions and 2 deletions
|
@ -112,7 +112,11 @@ public class DisplayCommand extends PKCommand {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (String ability : abilities) {
|
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);
|
sender.sendMessage(GeneralMethods.getAvatarColor() + ability);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue