From 58abd1720575114215045df39e4213f09712be27 Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Thu, 10 Sep 2015 16:30:29 +0200 Subject: [PATCH] Renamed /maptool manage to /maptool explore, and added the /maps alias. * NEW: /maptool manage is now /maptool explore. * NEW: added /maps as an alias of /maptool explore. --- src/main/java/fr/moribus/imageonmap/commands/Commands.java | 5 +++-- .../maptool/{ManageCommand.java => ExploreCommand.java} | 6 +++--- src/main/resources/plugin.yml | 3 +++ 3 files changed, 9 insertions(+), 5 deletions(-) rename src/main/java/fr/moribus/imageonmap/commands/maptool/{ManageCommand.java => ExploreCommand.java} (90%) diff --git a/src/main/java/fr/moribus/imageonmap/commands/Commands.java b/src/main/java/fr/moribus/imageonmap/commands/Commands.java index b03cb4e..b97bd18 100644 --- a/src/main/java/fr/moribus/imageonmap/commands/Commands.java +++ b/src/main/java/fr/moribus/imageonmap/commands/Commands.java @@ -38,10 +38,11 @@ public enum Commands implements TabCompleter, CommandExecutor DeleteConfirmCommand.class, DeleteNoConfirmCommand.class, GetRemainingCommand.class, - ManageCommand.class, + ExploreCommand.class, MigrateCommand.class ), - TOMAP(MAPTOOL, NewCommand.class, "tomap"); + TOMAP(MAPTOOL, NewCommand.class, "tomap"), + MAPS(MAPTOOL, ExploreCommand.class, "maps"); static private final Commands[] commandGroups = Commands.class.getEnumConstants(); private final Commands shortcutCommandGroup; diff --git a/src/main/java/fr/moribus/imageonmap/commands/maptool/ManageCommand.java b/src/main/java/fr/moribus/imageonmap/commands/maptool/ExploreCommand.java similarity index 90% rename from src/main/java/fr/moribus/imageonmap/commands/maptool/ManageCommand.java rename to src/main/java/fr/moribus/imageonmap/commands/maptool/ExploreCommand.java index 34e1fd4..7bdc26a 100644 --- a/src/main/java/fr/moribus/imageonmap/commands/maptool/ManageCommand.java +++ b/src/main/java/fr/moribus/imageonmap/commands/maptool/ExploreCommand.java @@ -24,10 +24,10 @@ import fr.moribus.imageonmap.guiproko.list.MapListGui; import fr.moribus.imageonmap.guiproko.core.Gui; -@CommandInfo(name = "manage") -public class ManageCommand extends Command +@CommandInfo(name = "explore") +public class ExploreCommand extends Command { - public ManageCommand(Commands commandGroup) + public ExploreCommand(Commands commandGroup) { super(commandGroup); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 49c9253..f96bc59 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -8,6 +8,9 @@ commands: usage: / [URL] maptool: description: manage maps + maps: + description: manage maps through a GUI + permissions: imageonmap.userender: description: Allows you to use /tomap