mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 01:30:49 +00:00
totally not me forgetting how this works
This commit is contained in:
parent
107f6b9a44
commit
7137f5b715
@ -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…
Reference in New Issue
Block a user