Move aliases back to plugin.yml since setAliases doesn't work.

This commit is contained in:
GJ 2013-02-06 11:45:19 -05:00
parent 9326921e2a
commit 7e70c4001b
2 changed files with 2 additions and 15 deletions

View File

@ -49,14 +49,7 @@ public final class CommandRegistrationHelper {
PluginCommand command;
// Make us play nice with Essentials
if (skill == SkillType.REPAIR && mcMMO.p.getServer().getPluginManager().isPluginEnabled("Essentials")) {
command = mcMMO.p.getCommand("mcrepair");
}
else {
command = mcMMO.p.getCommand(commandName);
}
command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName)));
command.setPermission("mcmmo.commands." + commandName);
command.setPermissionMessage(permissionsMessage);
@ -209,9 +202,6 @@ public final class CommandRegistrationHelper {
}
public static void registerMcmmoCommand() {
List<String> aliasList = new ArrayList<String>();
aliasList.add("mcinfo");
PluginCommand command = mcMMO.p.getCommand("mcmmo");
command.setDescription(LocaleLoader.getString("Commands.Description.mcmmo"));
command.setPermission("mcmmo.commands.mcmmo");
@ -231,15 +221,11 @@ public final class CommandRegistrationHelper {
}
public static void registerMcstatsCommand() {
List<String> aliasList = new ArrayList<String>();
aliasList.add("stats");
PluginCommand command = mcMMO.p.getCommand("mcstats");
command.setDescription(LocaleLoader.getString("Commands.Description.mcstats"));
command.setPermission("mcmmo.commands.mcstats");
command.setPermissionMessage(permissionsMessage);
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mcstats"));
command.setAliases(aliasList);
command.setExecutor(new McstatsCommand());
}

View File

@ -48,6 +48,7 @@ commands:
mcgod:
description: Toggle mcMMO god-mode on/off
mcstats:
aliases: [stats]
description: Shows your mcMMO stats and xp
mcremove:
aliases: []