diff --git a/src/main/java/wtf/beatrice/nounspicker/objects/Permission.java b/src/main/java/wtf/beatrice/nounspicker/objects/Permission.java index b653a1b..c045f5e 100644 --- a/src/main/java/wtf/beatrice/nounspicker/objects/Permission.java +++ b/src/main/java/wtf/beatrice/nounspicker/objects/Permission.java @@ -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; } } diff --git a/src/main/java/wtf/beatrice/nounspicker/utils/PermissionManager.java b/src/main/java/wtf/beatrice/nounspicker/utils/PermissionManager.java index 4ad071a..6e48e97 100644 --- a/src/main/java/wtf/beatrice/nounspicker/utils/PermissionManager.java +++ b/src/main/java/wtf/beatrice/nounspicker/utils/PermissionManager.java @@ -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()); } }