From b4d710840de576a96e75968f943f104eb7ae10b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sun, 1 Nov 2015 18:58:41 +0100 Subject: [PATCH] Removed some unused code --- .../xephi/authme/command/CommandManager.java | 156 ------------------ 1 file changed, 156 deletions(-) diff --git a/src/main/java/fr/xephi/authme/command/CommandManager.java b/src/main/java/fr/xephi/authme/command/CommandManager.java index 8d952fd5..996ff901 100644 --- a/src/main/java/fr/xephi/authme/command/CommandManager.java +++ b/src/main/java/fr/xephi/authme/command/CommandManager.java @@ -53,77 +53,6 @@ public class CommandManager { helpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true)); helpCommand.setMaximumArguments(false); - /*// Register the create command - CommandDescription createWorldCommand = new CommandDescription( - new CreateWorldCommand(), - new ArrayList() {{ - add("createworld"); - add("cw"); - }}, - "Create world", - "Create a new Dungeon Maze world, the name of the world must be unique.", - dungeonMazeCommand); - createWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to create.", false)); - createWorldCommand.addArgument(new CommandArgumentDescription("preload", "True or False to preload the world on startup.", true)); - createWorldCommand.setCommandPermissions("dungeonmaze.command.createworld", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the teleport command - CommandDescription teleportCommand = new CommandDescription( - new TeleportCommand(), - new ArrayList() {{ - add("teleport"); - add("tp"); - add("warp"); - add("goto"); - add("move"); - }}, - "Teleport to world", - "Teleports to any another world, such as a Dungeon Maze world." , - dungeonMazeCommand); - teleportCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to teleport to.", false)); - teleportCommand.setCommandPermissions("dungeonmaze.command.teleport", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the load world command - CommandDescription loadWorldCommand = new CommandDescription( - new LoadWorldCommand(), - new ArrayList() {{ - add("loadworld"); - add("load"); - }}, - "Load a world", - "Load a world if it isn't loaded." , - dungeonMazeCommand); - loadWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to load.", false)); - loadWorldCommand.setCommandPermissions("dungeonmaze.command.loadworld", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the unload world command - CommandDescription unloadWorldCommand = new CommandDescription( - new UnloadWorldCommand(), - new ArrayList() {{ - add("unloadworld"); - add("unload"); - }}, - "Unload a world", - "Unload a loaded world." , - dungeonMazeCommand); - unloadWorldCommand.addArgument(new CommandArgumentDescription("world", "The name of the world to unload.", false)); - unloadWorldCommand.setCommandPermissions("dungeonmaze.command.unloadworld", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the list world command - CommandDescription listWorldCommand = new CommandDescription( - new ListWorldCommand(), - new ArrayList() {{ - add("listworlds"); - add("listworld"); - add("list"); - add("worlds"); - add("lw"); - }}, - "List Dungeon Mazes", - "Lists the available Dungeon Maze worlds and shows some additional information.", - dungeonMazeCommand); - listWorldCommand.setCommandPermissions("dungeonmaze.command.listworlds", CommandPermissions.DefaultPermission.OP_ONLY);*/ - // Register the register command CommandDescription registerCommand = new CommandDescription( new RegisterCommand(), @@ -370,91 +299,6 @@ public class CommandManager { authMeCommand); reloadCommand.setCommandPermissions("authme.admin.reload", CommandPermissions.DefaultPermission.OP_ONLY); - /* // Register the reload permissions command - CommandDescription reloadPermissionsCommand = new CommandDescription( - new ReloadPermissionsCommand(), - new ArrayList() {{ - add("reloadpermissions"); - add("reloadpermission"); - add("reloadperms"); - add("rp"); - }}, - "Reload permissions", - "Reload the permissions system and rehook the installed permissions system.", - dungeonMazeCommand); - reloadPermissionsCommand.setCommandPermissions("dungeonmaze.command.reloadpermissions", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the restart command - CommandDescription restartCommand = new CommandDescription( - new RestartCommand(), - new ArrayList() {{ - add("restart"); - add("rstrt"); - }}, - "Restart Dungeon Maze", - "Restart the Dungeon Maze plugin.", - dungeonMazeCommand); - restartCommand.setCommandPermissions("dungeonmaze.command.restart", CommandPermissions.DefaultPermission.OP_ONLY); - restartCommand.addArgument(new CommandArgumentDescription("force", "True or False to force restart.", true)); - - // Register the check updates command - CommandDescription checkUpdatesCommand = new CommandDescription( - new CheckUpdatesCommand(), - new ArrayList() {{ - add("checkupdates"); - add("checkupdate"); - add("check"); - add("updates"); - add("update"); - add("cu"); - }}, - "Check updates", - "Check for available updates to install.", - dungeonMazeCommand); - checkUpdatesCommand.setCommandPermissions("dungeonmaze.command.checkupdates", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the install update command - CommandDescription installUpdateCommand = new CommandDescription( - new InstallUpdateCommand(), - new ArrayList() {{ - add("installupdates"); - add("installupdate"); - add("install"); - add("iu"); - }}, - "Install update", - "Try to install any availble update.", - dungeonMazeCommand); - installUpdateCommand.setCommandPermissions("dungeonmaze.command.installupdate", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the status command - CommandDescription statusCommand = new CommandDescription( - new StatusCommand(), - new ArrayList() {{ - add("status"); - add("stats"); - add("s"); - }}, - "Status info", - "Show detailed plugin status.", - dungeonMazeCommand); - statusCommand.setMaximumArguments(false); - statusCommand.setCommandPermissions("dungeonmaze.command.status", CommandPermissions.DefaultPermission.OP_ONLY); - - // Register the status command - CommandDescription serviceCommand = new CommandDescription( - new ServiceCommand(), - new ArrayList() {{ - add("services"); - add("service"); - add("serv"); - }}, - "Services command", - "Show detailed information about all the Dungeon Maze serivces.", - dungeonMazeCommand); - serviceCommand.setMaximumArguments(false); - serviceCommand.setCommandPermissions("dungeonmaze.command.services", CommandPermissions.DefaultPermission.OP_ONLY);*/ - // Register the version command CommandDescription versionCommand = new CommandDescription( new VersionCommand(),