Commit 107f6b9a authored by KingRainbow44's avatar KingRainbow44
Browse files

Change to `String#equals`

parent f58c590a
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment