0

Fixed noperm commands not working

This commit is contained in:
NEMESIS13cz
2016-11-19 16:12:52 +01:00
parent 80d27b488b
commit 4e7049b213

View File

@@ -337,7 +337,7 @@ public class Executable extends org.bukkit.command.Command {
return true;
}
}
if (def.getPermission() != null && !sender.hasPermission(def.getPermission())) {
if (def.getPermission() != null && !def.getPermission().equals("null") && !sender.hasPermission(def.getPermission())) {
sender.sendMessage(CommandManager.noPermissionFormatting + "You do not have permission to execute this command.");
return true;
}