Removed perm checks for console.

This commit is contained in:
Tastybento 2017-12-28 17:20:33 -08:00
parent 4d7b5374e5
commit 9b0992c30d

View File

@ -122,7 +122,8 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
user.sendMessage("general.errors.use-in-game");
return true;
}
if (!cmd.getPermission().isEmpty() && !sender.hasPermission(cmd.getPermission())) {
// Check perms, but only if this isn't the console
if ((sender instanceof Player) && !cmd.getPermission().isEmpty() && !sender.hasPermission(cmd.getPermission())) {
user.sendMessage("general.errors.no-permission");
return true;
}