diff --git a/src/main/java/com/gmail/nossr50/commands/CommandRegistrationHelper.java b/src/main/java/com/gmail/nossr50/commands/CommandRegistrationHelper.java index 26b7cc1d2..1413e0b6c 100644 --- a/src/main/java/com/gmail/nossr50/commands/CommandRegistrationHelper.java +++ b/src/main/java/com/gmail/nossr50/commands/CommandRegistrationHelper.java @@ -171,12 +171,16 @@ public final class CommandRegistrationHelper { } public static void registerXprateCommand() { + List aliasList = new ArrayList(); + aliasList.add("mcxprate"); + PluginCommand command = mcMMO.p.getCommand("xprate"); command.setDescription(LocaleLoader.getString("Commands.Description.xprate")); command.setPermission("mcmmo.commands.xprate;mcmmo.commands.xprate.reset;mcmmo.commands.xprate.set"); command.setPermissionMessage(permissionsMessage); command.setUsage(LocaleLoader.getString("Commands.Usage.2", "xprate", "<" + LocaleLoader.getString("Commands.Usage.Rate") + ">", "<" + LocaleLoader.getString("Commands.Usage.True") + "|" + LocaleLoader.getString("Commands.Usage.False")+ ">")); command.setUsage(command.getUsage() + "\n" + LocaleLoader.getString("Commands.Usage.1", "xprate", "reset")); + command.setAliases(aliasList); command.setExecutor(new XprateCommand()); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b9801feba..fcce683b7 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -27,7 +27,6 @@ commands: aliases: [mcxplock] description: Lock your xp bar xprate: - aliases: [mcxprate] description: Modify the xp rate or start an event mcc: aliases: []