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() {
|
protected CommandCondition isPrivileged() {
|
||||||
// return (sender, commandString) -> sender.hasPermission("admin");
|
return (sender, commandString) -> sender.hasPermission("admin");
|
||||||
return (sender, commandString) -> true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void addCondition(CommandCondition condition) {
|
protected void addCondition(CommandCondition condition) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user