Change to String#equals

This commit is contained in:
KingRainbow44 2022-04-20 00:10:43 -04:00
parent f58c590aa3
commit 107f6b9a44

View File

@ -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;
}
}