"mcmmo help" command no longer shows players the category for admin type commands if they lack permissions for said commands

This commit is contained in:
nossr50
2019-01-21 05:17:59 -08:00
parent 4f3174c68b
commit 11461cc220
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,10 @@ public class McmmoCommand implements CommandExecutor {
}
private void displayOtherCommands(CommandSender sender) {
//Don't show them this category if they have none of the permissions
if(!Permissions.skillreset(sender) && !Permissions.mmoedit(sender) && !Permissions.adminChat(sender) && !Permissions.mcgod(sender))
return;
sender.sendMessage(LocaleLoader.getString("Commands.Other"));
if (Permissions.skillreset(sender)) {