Add a wildcard command permission

This commit is contained in:
Xephi
2015-12-05 19:00:44 +01:00
parent a8b3fe2648
commit 1db24adb5d
3 changed files with 22 additions and 12 deletions
@@ -98,7 +98,12 @@ public enum AdminPermission implements PermissionNode {
/**
* Administrator command to reload the plugin configuration.
*/
RELOAD("authme.command.admin.reload");
RELOAD("authme.command.admin.reload"),
/**
* Give access to all admin commands
*/
ALL("authme.command.admin.*");
/**
* Permission node.
@@ -78,7 +78,12 @@ public enum PlayerPermission implements PermissionNode {
/**
* Permission for user to see other accounts.
*/
SEE_OTHER_ACCOUNTS("authme.command.player.seeotheraccounts");
SEE_OTHER_ACCOUNTS("authme.command.player.seeotheraccounts"),
/**
*
*/
ALL_COMMANDS("authme.command.player.*");
/**
* Permission node.