mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-21 23:51:20 +01:00
Removed perm checks for console.
This commit is contained in:
parent
4d7b5374e5
commit
9b0992c30d
@ -122,7 +122,8 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
|||||||
user.sendMessage("general.errors.use-in-game");
|
user.sendMessage("general.errors.use-in-game");
|
||||||
return true;
|
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");
|
user.sendMessage("general.errors.no-permission");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user