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");
private String perm;
Permission(String perm) {
this.perm = perm;
private String node;
Permission(String node) {
this.node = node;
}
public String getPerm() {
return perm;
public String getNode() {
return node;
}
}

View File

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