This commit is contained in:
parent
9acb7a222d
commit
6bd4b12f18
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user