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