privileged commands only for admins
This commit is contained in:
parent
843fa26c08
commit
3f247bfc90
@ -27,8 +27,7 @@ public class PrivilegedCommand extends Command {
|
||||
}
|
||||
|
||||
protected CommandCondition isPrivileged() {
|
||||
// return (sender, commandString) -> sender.hasPermission("admin");
|
||||
return (sender, commandString) -> true;
|
||||
return (sender, commandString) -> sender.hasPermission("admin");
|
||||
}
|
||||
|
||||
protected void addCondition(CommandCondition condition) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user