Rename perm to node
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-10-24 22:53:18 +02:00
parent 9acb7a222d
commit 6bd4b12f18
2 changed files with 6 additions and 6 deletions

View File

@ -10,13 +10,13 @@ public enum Permission {
NOUNS_UPDATE("nouns.cmd.update"); NOUNS_UPDATE("nouns.cmd.update");
private String perm; private String node;
Permission(String perm) { Permission(String node) {
this.perm = perm; this.node = node;
} }
public String getPerm() { public String getNode() {
return perm; return node;
} }
} }

View File

@ -8,6 +8,6 @@ public class PermissionManager
public static boolean hasPermission(CommandSender sender, Permission permission) public static boolean hasPermission(CommandSender sender, Permission permission)
{ {
return sender.hasPermission(permission.getPerm()); return sender.hasPermission(permission.getNode());
} }
} }