mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-09 13:36:15 +08:00
totally not me forgetting how this works
This commit is contained in:
parent
7485e9fd4e
commit
9f2cf00b95
@ -113,7 +113,7 @@ public final class CommandMap {
|
||||
if(player != null) {
|
||||
String permissionNode = this.annotations.get(label).permission();
|
||||
Account account = player.getAccount();
|
||||
if(!permissionNode.equals("*") && !account.hasPermission(permissionNode)) {
|
||||
if(!permissionNode.isEmpty() && !account.hasPermission(permissionNode)) {
|
||||
CommandHandler.sendMessage(player, "You do not have permission to run this command."); return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user