Rebased administration command permission nodes
This commit is contained in:
parent
3b9b1b7b8a
commit
8bea153005
@ -136,7 +136,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the getemail command
|
// Register the getemail command
|
||||||
CommandDescription getEmailCommand = new CommandDescription(new GetEmailCommand(), new ArrayList<String>() {
|
CommandDescription getEmailCommand = new CommandDescription(new GetEmailCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("getemail");
|
add("getemail");
|
||||||
add("getmail");
|
add("getmail");
|
||||||
@ -149,7 +148,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the setemail command
|
// Register the setemail command
|
||||||
CommandDescription setEmailCommand = new CommandDescription(new SetEmailCommand(), new ArrayList<String>() {
|
CommandDescription setEmailCommand = new CommandDescription(new SetEmailCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("chgemail");
|
add("chgemail");
|
||||||
add("chgmail");
|
add("chgmail");
|
||||||
@ -163,7 +161,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the getip command
|
// Register the getip command
|
||||||
CommandDescription getIpCommand = new CommandDescription(new GetIpCommand(), new ArrayList<String>() {
|
CommandDescription getIpCommand = new CommandDescription(new GetIpCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("getip");
|
add("getip");
|
||||||
add("ip");
|
add("ip");
|
||||||
@ -174,7 +171,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the spawn command
|
// Register the spawn command
|
||||||
CommandDescription spawnCommand = new CommandDescription(new SpawnCommand(), new ArrayList<String>() {
|
CommandDescription spawnCommand = new CommandDescription(new SpawnCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("spawn");
|
add("spawn");
|
||||||
add("home");
|
add("home");
|
||||||
@ -184,7 +180,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the setspawn command
|
// Register the setspawn command
|
||||||
CommandDescription setSpawnCommand = new CommandDescription(new SetSpawnCommand(), new ArrayList<String>() {
|
CommandDescription setSpawnCommand = new CommandDescription(new SetSpawnCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("setspawn");
|
add("setspawn");
|
||||||
add("chgspawn");
|
add("chgspawn");
|
||||||
@ -194,7 +189,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the firstspawn command
|
// Register the firstspawn command
|
||||||
CommandDescription firstSpawnCommand = new CommandDescription(new FirstSpawnCommand(), new ArrayList<String>() {
|
CommandDescription firstSpawnCommand = new CommandDescription(new FirstSpawnCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("firstspawn");
|
add("firstspawn");
|
||||||
add("firsthome");
|
add("firsthome");
|
||||||
@ -204,7 +198,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the setfirstspawn command
|
// Register the setfirstspawn command
|
||||||
CommandDescription setFirstSpawnCommand = new CommandDescription(new SetFirstSpawnCommand(), new ArrayList<String>() {
|
CommandDescription setFirstSpawnCommand = new CommandDescription(new SetFirstSpawnCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("setfirstspawn");
|
add("setfirstspawn");
|
||||||
add("chgfirstspawn");
|
add("chgfirstspawn");
|
||||||
@ -214,7 +207,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the purge command
|
// Register the purge command
|
||||||
CommandDescription purgeCommand = new CommandDescription(new PurgeCommand(), new ArrayList<String>() {
|
CommandDescription purgeCommand = new CommandDescription(new PurgeCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("purge");
|
add("purge");
|
||||||
add("delete");
|
add("delete");
|
||||||
@ -225,7 +217,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the purgelastposition command
|
// Register the purgelastposition command
|
||||||
CommandDescription purgeLastPositionCommand = new CommandDescription(new PurgeLastPositionCommand(), new ArrayList<String>() {
|
CommandDescription purgeLastPositionCommand = new CommandDescription(new PurgeLastPositionCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("resetpos");
|
add("resetpos");
|
||||||
add("purgelastposition");
|
add("purgelastposition");
|
||||||
@ -240,7 +231,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the purgebannedplayers command
|
// Register the purgebannedplayers command
|
||||||
CommandDescription purgeBannedPlayersCommand = new CommandDescription(new PurgeBannedPlayersCommand(), new ArrayList<String>() {
|
CommandDescription purgeBannedPlayersCommand = new CommandDescription(new PurgeBannedPlayersCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("purgebannedplayers");
|
add("purgebannedplayers");
|
||||||
add("purgebannedplayer");
|
add("purgebannedplayer");
|
||||||
@ -252,7 +242,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the switchantibot command
|
// Register the switchantibot command
|
||||||
CommandDescription switchAntiBotCommand = new CommandDescription(new SwitchAntiBotCommand(), new ArrayList<String>() {
|
CommandDescription switchAntiBotCommand = new CommandDescription(new SwitchAntiBotCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("switchantibot");
|
add("switchantibot");
|
||||||
add("toggleantibot");
|
add("toggleantibot");
|
||||||
@ -277,7 +266,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the reload command
|
// Register the reload command
|
||||||
CommandDescription reloadCommand = new CommandDescription(new ReloadCommand(), new ArrayList<String>() {
|
CommandDescription reloadCommand = new CommandDescription(new ReloadCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("reload");
|
add("reload");
|
||||||
add("rld");
|
add("rld");
|
||||||
@ -313,7 +301,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base logout command
|
// Register the base logout command
|
||||||
CommandDescription logoutBaseCommand = new CommandDescription(new LogoutCommand(), new ArrayList<String>() {
|
CommandDescription logoutBaseCommand = new CommandDescription(new LogoutCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("logout");
|
add("logout");
|
||||||
}
|
}
|
||||||
@ -327,7 +314,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base register command
|
// Register the base register command
|
||||||
CommandDescription registerBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.register.RegisterCommand(), new ArrayList<String>() {
|
CommandDescription registerBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.register.RegisterCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("register");
|
add("register");
|
||||||
add("reg");
|
add("reg");
|
||||||
@ -344,7 +330,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base unregister command
|
// Register the base unregister command
|
||||||
CommandDescription unregisterBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.unregister.UnregisterCommand(), new ArrayList<String>() {
|
CommandDescription unregisterBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.unregister.UnregisterCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("unregister");
|
add("unregister");
|
||||||
add("unreg");
|
add("unreg");
|
||||||
@ -359,7 +344,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base changepassword command
|
// Register the base changepassword command
|
||||||
CommandDescription changePasswordBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand(), new ArrayList<String>() {
|
CommandDescription changePasswordBaseCommand = new CommandDescription(new fr.xephi.authme.command.executable.changepassword.ChangePasswordCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("changepassword");
|
add("changepassword");
|
||||||
add("changepass");
|
add("changepass");
|
||||||
@ -376,7 +360,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base Dungeon Maze command
|
// Register the base Dungeon Maze command
|
||||||
CommandDescription emailBaseCommand = new CommandDescription(helpCommandExecutable, new ArrayList<String>() {
|
CommandDescription emailBaseCommand = new CommandDescription(helpCommandExecutable, new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("email");
|
add("email");
|
||||||
add("mail");
|
add("mail");
|
||||||
@ -390,7 +373,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the add command
|
// Register the add command
|
||||||
CommandDescription addEmailCommand = new CommandDescription(new AddEmailCommand(), new ArrayList<String>() {
|
CommandDescription addEmailCommand = new CommandDescription(new AddEmailCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("add");
|
add("add");
|
||||||
add("addemail");
|
add("addemail");
|
||||||
@ -403,7 +385,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the change command
|
// Register the change command
|
||||||
CommandDescription changeEmailCommand = new CommandDescription(new ChangeEmailCommand(), new ArrayList<String>() {
|
CommandDescription changeEmailCommand = new CommandDescription(new ChangeEmailCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("change");
|
add("change");
|
||||||
add("changeemail");
|
add("changeemail");
|
||||||
@ -416,7 +397,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the recover command
|
// Register the recover command
|
||||||
CommandDescription recoverEmailCommand = new CommandDescription(new RecoverEmailCommand(), new ArrayList<String>() {
|
CommandDescription recoverEmailCommand = new CommandDescription(new RecoverEmailCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("recover");
|
add("recover");
|
||||||
add("recovery");
|
add("recovery");
|
||||||
@ -429,7 +409,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base captcha command
|
// Register the base captcha command
|
||||||
CommandDescription captchaBaseCommand = new CommandDescription(new CaptchaCommand(), new ArrayList<String>() {
|
CommandDescription captchaBaseCommand = new CommandDescription(new CaptchaCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("captcha");
|
add("captcha");
|
||||||
add("capt");
|
add("capt");
|
||||||
@ -445,7 +424,6 @@ public class CommandManager {
|
|||||||
|
|
||||||
// Register the base converter command
|
// Register the base converter command
|
||||||
CommandDescription converterBaseCommand = new CommandDescription(new ConverterCommand(), new ArrayList<String>() {
|
CommandDescription converterBaseCommand = new CommandDescription(new ConverterCommand(), new ArrayList<String>() {
|
||||||
|
|
||||||
{
|
{
|
||||||
add("converter");
|
add("converter");
|
||||||
add("convert");
|
add("convert");
|
||||||
|
|||||||
@ -5,41 +5,41 @@ package fr.xephi.authme.permission;
|
|||||||
*/
|
*/
|
||||||
public enum AdminPermission implements PermissionNode {
|
public enum AdminPermission implements PermissionNode {
|
||||||
|
|
||||||
REGISTER("authme.admin.register"),
|
REGISTER("authme.command.admin.register"),
|
||||||
|
|
||||||
UNREGISTER("authme.admin.unregister"),
|
UNREGISTER("authme.command.admin.unregister"),
|
||||||
|
|
||||||
FORCE_LOGIN("authme.admin.forcelogin"),
|
FORCE_LOGIN("authme.command.admin.forcelogin"),
|
||||||
|
|
||||||
CHANGE_PASSWORD("authme.admin.changepassword"),
|
CHANGE_PASSWORD("authme.command.admin.changepassword"),
|
||||||
|
|
||||||
LAST_LOGIN("authme.admin.lastlogin"),
|
LAST_LOGIN("authme.command.admin.lastlogin"),
|
||||||
|
|
||||||
ACCOUNTS("authme.admin.accounts"),
|
ACCOUNTS("authme.command.admin.accounts"),
|
||||||
|
|
||||||
GET_EMAIL("authme.admin.getemail"),
|
GET_EMAIL("authme.command.admin.getemail"),
|
||||||
|
|
||||||
CHANGE_EMAIL("authme.admin.chgemail"),
|
CHANGE_EMAIL("authme.command.admin.chgemail"),
|
||||||
|
|
||||||
GET_IP("authme.admin.getip"),
|
GET_IP("authme.command.admin.getip"),
|
||||||
|
|
||||||
SPAWN("authme.admin.spawn"),
|
SPAWN("authme.command.admin.spawn"),
|
||||||
|
|
||||||
SET_SPAWN("authme.admin.setspawn"),
|
SET_SPAWN("authme.command.admin.setspawn"),
|
||||||
|
|
||||||
FIRST_SPAWN("authme.admin.firstspawn"),
|
FIRST_SPAWN("authme.command.admin.firstspawn"),
|
||||||
|
|
||||||
SET_FIRST_SPAWN("authme.admin.setfirstspawn"),
|
SET_FIRST_SPAWN("authme.command.admin.setfirstspawn"),
|
||||||
|
|
||||||
PURGE("authme.admin.purge"),
|
PURGE("authme.command.admin.purge"),
|
||||||
|
|
||||||
PURGE_LAST_POSITION("authme.admin.purgelastpos"),
|
PURGE_LAST_POSITION("authme.command.admin.purgelastpos"),
|
||||||
|
|
||||||
PURGE_BANNED_PLAYERS("authme.admin.purgebannedplayers"),
|
PURGE_BANNED_PLAYERS("authme.command.admin.purgebannedplayers"),
|
||||||
|
|
||||||
SWITCH_ANTIBOT("authme.admin.switchantibot"),
|
SWITCH_ANTIBOT("authme.command.admin.switchantibot"),
|
||||||
|
|
||||||
RELOAD("authme.admin.reload");
|
RELOAD("authme.command.admin.reload");
|
||||||
|
|
||||||
private String node;
|
private String node;
|
||||||
|
|
||||||
@ -51,5 +51,4 @@ public enum AdminPermission implements PermissionNode {
|
|||||||
AdminPermission(String node) {
|
AdminPermission(String node) {
|
||||||
this.node = node;
|
this.node = node;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user