mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Move aliases back to plugin.yml since setAliases doesn't work.
This commit is contained in:
parent
9326921e2a
commit
7e70c4001b
@ -49,14 +49,7 @@ public final class CommandRegistrationHelper {
|
|||||||
|
|
||||||
PluginCommand command;
|
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 = mcMMO.p.getCommand(commandName);
|
||||||
}
|
|
||||||
|
|
||||||
command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName)));
|
command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName)));
|
||||||
command.setPermission("mcmmo.commands." + commandName);
|
command.setPermission("mcmmo.commands." + commandName);
|
||||||
command.setPermissionMessage(permissionsMessage);
|
command.setPermissionMessage(permissionsMessage);
|
||||||
@ -209,9 +202,6 @@ public final class CommandRegistrationHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void registerMcmmoCommand() {
|
public static void registerMcmmoCommand() {
|
||||||
List<String> aliasList = new ArrayList<String>();
|
|
||||||
aliasList.add("mcinfo");
|
|
||||||
|
|
||||||
PluginCommand command = mcMMO.p.getCommand("mcmmo");
|
PluginCommand command = mcMMO.p.getCommand("mcmmo");
|
||||||
command.setDescription(LocaleLoader.getString("Commands.Description.mcmmo"));
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcmmo"));
|
||||||
command.setPermission("mcmmo.commands.mcmmo");
|
command.setPermission("mcmmo.commands.mcmmo");
|
||||||
@ -231,15 +221,11 @@ public final class CommandRegistrationHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void registerMcstatsCommand() {
|
public static void registerMcstatsCommand() {
|
||||||
List<String> aliasList = new ArrayList<String>();
|
|
||||||
aliasList.add("stats");
|
|
||||||
|
|
||||||
PluginCommand command = mcMMO.p.getCommand("mcstats");
|
PluginCommand command = mcMMO.p.getCommand("mcstats");
|
||||||
command.setDescription(LocaleLoader.getString("Commands.Description.mcstats"));
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcstats"));
|
||||||
command.setPermission("mcmmo.commands.mcstats");
|
command.setPermission("mcmmo.commands.mcstats");
|
||||||
command.setPermissionMessage(permissionsMessage);
|
command.setPermissionMessage(permissionsMessage);
|
||||||
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mcstats"));
|
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mcstats"));
|
||||||
command.setAliases(aliasList);
|
|
||||||
command.setExecutor(new McstatsCommand());
|
command.setExecutor(new McstatsCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ commands:
|
|||||||
mcgod:
|
mcgod:
|
||||||
description: Toggle mcMMO god-mode on/off
|
description: Toggle mcMMO god-mode on/off
|
||||||
mcstats:
|
mcstats:
|
||||||
|
aliases: [stats]
|
||||||
description: Shows your mcMMO stats and xp
|
description: Shows your mcMMO stats and xp
|
||||||
mcremove:
|
mcremove:
|
||||||
aliases: []
|
aliases: []
|
||||||
|
Loading…
Reference in New Issue
Block a user