From 756469449e0f70f885638ddfe2701e97394f72a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sun, 1 Nov 2015 16:36:05 +0100 Subject: [PATCH] Updated command manager --- .../xephi/authme/command/CommandManager.java | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main/java/fr/xephi/authme/command/CommandManager.java b/src/main/java/fr/xephi/authme/command/CommandManager.java index 912e76611..624b07e78 100644 --- a/src/main/java/fr/xephi/authme/command/CommandManager.java +++ b/src/main/java/fr/xephi/authme/command/CommandManager.java @@ -1,6 +1,6 @@ package fr.xephi.authme.command; -import com.timvisee.dungeonmaze.command.executable.*; +import fr.xephi.authme.command.executable.*; import java.util.ArrayList; import java.util.List; @@ -28,14 +28,13 @@ public class CommandManager { @SuppressWarnings("SpellCheckingInspection") public void registerCommands() { // Register the base Dungeon Maze command - CommandDescription dungeonMazeCommand = new CommandDescription( - new DungeonMazeCommand(), + CommandDescription authMeCommand = new CommandDescription( + new AuthMeCommand(), new ArrayList() {{ - add("dungeonmaze"); - add("dm"); + add("authme"); }}, "Main command", - "The main Dungeon Maze command. The root for all the other commands.", null); + "The main AuthMeReloaded command. The root for all the other commands.", null); // Register the help command CommandDescription helpCommand = new CommandDescription( @@ -48,12 +47,12 @@ public class CommandManager { add("?"); }}, "View help", - "View detailed help pages about Dungeon Maze commands.", - dungeonMazeCommand); + "View detailed help pages about AuthMeReloaded commands.", + authMeCommand); helpCommand.addArgument(new CommandArgumentDescription("query", "The command or query to view help for.", true)); helpCommand.setMaximumArguments(false); - // Register the create command + /*// Register the create command CommandDescription createWorldCommand = new CommandDescription( new CreateWorldCommand(), new ArrayList() {{ @@ -236,10 +235,10 @@ public class CommandManager { "Version info", "Show detailed information about the installed Dungeon Maze version, and shows the developers, contributors, license and other information.", dungeonMazeCommand); - versionCommand.setMaximumArguments(false); + versionCommand.setMaximumArguments(false);*/ - // Add the base command to the commands array - this.commandDescriptions.add(dungeonMazeCommand); + // Add the base commands to the commands array + this.commandDescriptions.add(authMeCommand); } /**