Add alias to /xprate through the register instead of plugin.yml

This commit is contained in:
GJ 2013-02-04 16:00:04 -05:00
parent 3153bbc973
commit 49ef013152
2 changed files with 4 additions and 1 deletions

View File

@ -171,12 +171,16 @@ public final class CommandRegistrationHelper {
}
public static void registerXprateCommand() {
List<String> aliasList = new ArrayList<String>();
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());
}
}

View File

@ -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: []