mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-30 07:50:54 +00:00
Change to String#equals
This commit is contained in:
parent
f58c590aa3
commit
107f6b9a44
@ -113,7 +113,7 @@ public final class CommandMap {
|
||||
if(player != null) {
|
||||
String permissionNode = this.annotations.get(label).permission();
|
||||
Account account = player.getAccount();
|
||||
if(!Objects.equals(permissionNode, "") && !account.hasPermission(permissionNode)) {
|
||||
if(!permissionNode.equals("*") && !account.hasPermission(permissionNode)) {
|
||||
CommandHandler.sendMessage(player, "You do not have permission to run this command."); return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user