mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 03:42:53 +08: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) {
|
if(player != null) {
|
||||||
String permissionNode = this.annotations.get(label).permission();
|
String permissionNode = this.annotations.get(label).permission();
|
||||||
Account account = player.getAccount();
|
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;
|
CommandHandler.sendMessage(player, "You do not have permission to run this command."); return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user