- Add wildcard attribute to permission nodes that are checked additionally in the permissions manager
This commit is contained in:
@@ -83,23 +83,13 @@ public enum PlayerPermission implements PermissionNode {
|
||||
/**
|
||||
* Permission to use all player (non-admin) commands.
|
||||
*/
|
||||
ALL_COMMANDS("authme.player.*");
|
||||
PLAYER_ALL("authme.player.*");
|
||||
|
||||
/**
|
||||
* Permission node.
|
||||
* The permission node.
|
||||
*/
|
||||
private String node;
|
||||
|
||||
/**
|
||||
* Get the permission node.
|
||||
*
|
||||
* @return Permission node.
|
||||
*/
|
||||
@Override
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
@@ -108,4 +98,14 @@ public enum PlayerPermission implements PermissionNode {
|
||||
PlayerPermission(String node) {
|
||||
this.node = node;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNode() {
|
||||
return node;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PermissionNode getWildcardNode() {
|
||||
return PLAYER_ALL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user