From 1897b1f5e6569b73217ed238b3dd433cdc387636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sun, 1 Nov 2015 15:31:15 +0100 Subject: [PATCH] Added dynamic command handler from Dungeon Maze --- .../dynamic/CommandArgumentDescription.java | 91 ++ .../commands/dynamic/CommandDescription.java | 912 ++++++++++++++++++ .../commands/dynamic/CommandHandler.java | 205 ++++ .../dynamic/CommandHandlerService.java | 90 ++ .../commands/dynamic/CommandManager.java | 288 ++++++ .../authme/commands/dynamic/CommandParts.java | 204 ++++ .../commands/dynamic/CommandPermissions.java | 182 ++++ .../commands/dynamic/ExecutableCommand.java | 17 + .../commands/dynamic/FoundCommandResult.java | 151 +++ .../executable/CheckUpdatesCommand.java | 78 ++ .../executable/CreateWorldCommand.java | 140 +++ .../executable/DungeonMazeCommand.java | 28 + .../dynamic/executable/HelpCommand.java | 37 + .../executable/InstallUpdateCommand.java | 75 ++ .../dynamic/executable/ListWorldCommand.java | 67 ++ .../dynamic/executable/LoadWorldCommand.java | 75 ++ .../dynamic/executable/ReloadCommand.java | 75 ++ .../executable/ReloadPermissionsCommand.java | 56 ++ .../dynamic/executable/RestartCommand.java | 105 ++ .../dynamic/executable/ServiceCommand.java | 73 ++ .../dynamic/executable/StatusCommand.java | 180 ++++ .../dynamic/executable/TeleportCommand.java | 80 ++ .../executable/UnloadWorldCommand.java | 107 ++ .../dynamic/executable/VersionCommand.java | 80 ++ .../commands/dynamic/help/HelpPrinter.java | 189 ++++ .../commands/dynamic/help/HelpProvider.java | 114 +++ .../dynamic/help/HelpSyntaxHelper.java | 60 ++ 27 files changed, 3759 insertions(+) create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandArgumentDescription.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandDescription.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandHandler.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandHandlerService.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandManager.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandParts.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/CommandPermissions.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/ExecutableCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/FoundCommandResult.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/CheckUpdatesCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/CreateWorldCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/DungeonMazeCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/HelpCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/InstallUpdateCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/ListWorldCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/LoadWorldCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/ReloadCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/ReloadPermissionsCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/RestartCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/ServiceCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/StatusCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/TeleportCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/UnloadWorldCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/executable/VersionCommand.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/help/HelpPrinter.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/help/HelpProvider.java create mode 100644 src/main/java/fr/xephi/authme/commands/dynamic/help/HelpSyntaxHelper.java diff --git a/src/main/java/fr/xephi/authme/commands/dynamic/CommandArgumentDescription.java b/src/main/java/fr/xephi/authme/commands/dynamic/CommandArgumentDescription.java new file mode 100644 index 000000000..5d021b65f --- /dev/null +++ b/src/main/java/fr/xephi/authme/commands/dynamic/CommandArgumentDescription.java @@ -0,0 +1,91 @@ +package fr.xephi.authme.commands.dynamic; + +public class CommandArgumentDescription { + + // TODO: Allow argument to consist of infinite parts.