|
@@ -57,7 +57,7 @@ public final class CommandRegistrationManager {
|
|
|
|
|
|
private static String permissionsMessage = LocaleLoader.getString("mcMMO.NoPermission");
|
|
private static String permissionsMessage = LocaleLoader.getString("mcMMO.NoPermission");
|
|
|
|
|
|
- public static void registerSkillCommands() {
|
|
|
|
|
|
+ private static void registerSkillCommands() {
|
|
for (SkillType skill : SkillType.values()) {
|
|
for (SkillType skill : SkillType.values()) {
|
|
String commandName = skill.toString().toLowerCase();
|
|
String commandName = skill.toString().toLowerCase();
|
|
String localizedName = SkillUtils.getSkillName(skill).toLowerCase();
|
|
String localizedName = SkillUtils.getSkillName(skill).toLowerCase();
|
|
@@ -130,7 +130,7 @@ public final class CommandRegistrationManager {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerAddlevelsCommand() {
|
|
|
|
|
|
+ private static void registerAddlevelsCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("addlevels");
|
|
PluginCommand command = mcMMO.p.getCommand("addlevels");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.addlevels"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.addlevels"));
|
|
command.setPermission("mcmmo.commands.addlevels;mcmmo.commands.addlevels.others");
|
|
command.setPermission("mcmmo.commands.addlevels;mcmmo.commands.addlevels.others");
|
|
@@ -139,7 +139,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new AddlevelsCommand());
|
|
command.setExecutor(new AddlevelsCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerAddxpCommand() {
|
|
|
|
|
|
+ private static void registerAddxpCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("addxp");
|
|
PluginCommand command = mcMMO.p.getCommand("addxp");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.addxp"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.addxp"));
|
|
command.setPermission("mcmmo.commands.addxp;mcmmo.commands.addxp.others");
|
|
command.setPermission("mcmmo.commands.addxp;mcmmo.commands.addxp.others");
|
|
@@ -148,7 +148,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new AddxpCommand());
|
|
command.setExecutor(new AddxpCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcgodCommand() {
|
|
|
|
|
|
+ private static void registerMcgodCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcgod");
|
|
PluginCommand command = mcMMO.p.getCommand("mcgod");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcgod"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcgod"));
|
|
command.setPermission("mcmmo.commands.mcgod;mcmmo.commands.mcgod.others");
|
|
command.setPermission("mcmmo.commands.mcgod;mcmmo.commands.mcgod.others");
|
|
@@ -157,7 +157,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McgodCommand());
|
|
command.setExecutor(new McgodCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcrefreshCommand() {
|
|
|
|
|
|
+ private static void registerMcrefreshCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcrefresh");
|
|
PluginCommand command = mcMMO.p.getCommand("mcrefresh");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcrefresh"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcrefresh"));
|
|
command.setPermission("mcmmo.commands.mcrefresh;mcmmo.commands.mcrefresh.others");
|
|
command.setPermission("mcmmo.commands.mcrefresh;mcmmo.commands.mcrefresh.others");
|
|
@@ -166,7 +166,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McrefreshCommand());
|
|
command.setExecutor(new McrefreshCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMmoeditCommand() {
|
|
|
|
|
|
+ private static void registerMmoeditCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mmoedit");
|
|
PluginCommand command = mcMMO.p.getCommand("mmoedit");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mmoedit"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mmoedit"));
|
|
command.setPermission("mcmmo.commands.mmoedit;mcmmo.commands.mmoedit.others");
|
|
command.setPermission("mcmmo.commands.mmoedit;mcmmo.commands.mmoedit.others");
|
|
@@ -175,7 +175,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new MmoeditCommand());
|
|
command.setExecutor(new MmoeditCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerSkillresetCommand() {
|
|
|
|
|
|
+ private static void registerSkillresetCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("skillreset");
|
|
PluginCommand command = mcMMO.p.getCommand("skillreset");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.skillreset"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.skillreset"));
|
|
command.setPermission("mcmmo.commands.skillreset;mcmmo.commands.skillreset.others"); // Only need the main ones, not the individual skill ones
|
|
command.setPermission("mcmmo.commands.skillreset;mcmmo.commands.skillreset.others"); // Only need the main ones, not the individual skill ones
|
|
@@ -184,7 +184,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new SkillresetCommand());
|
|
command.setExecutor(new SkillresetCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerXprateCommand() {
|
|
|
|
|
|
+ private static void registerXprateCommand() {
|
|
List<String> aliasList = new ArrayList<String>();
|
|
List<String> aliasList = new ArrayList<String>();
|
|
aliasList.add("mcxprate");
|
|
aliasList.add("mcxprate");
|
|
|
|
|
|
@@ -198,7 +198,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new XprateCommand());
|
|
command.setExecutor(new XprateCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerInspectCommand() {
|
|
|
|
|
|
+ private static void registerInspectCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("inspect");
|
|
PluginCommand command = mcMMO.p.getCommand("inspect");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.inspect"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.inspect"));
|
|
command.setPermission("mcmmo.commands.inspect;mcmmo.commands.inspect.far;mcmmo.commands.inspect.offline");
|
|
command.setPermission("mcmmo.commands.inspect;mcmmo.commands.inspect.far;mcmmo.commands.inspect.offline");
|
|
@@ -207,7 +207,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new InspectCommand());
|
|
command.setExecutor(new InspectCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcabilityCommand() {
|
|
|
|
|
|
+ private static void registerMcabilityCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcability");
|
|
PluginCommand command = mcMMO.p.getCommand("mcability");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcability"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcability"));
|
|
command.setPermission("mcmmo.commands.mcability;mcmmo.commands.mcability.others");
|
|
command.setPermission("mcmmo.commands.mcability;mcmmo.commands.mcability.others");
|
|
@@ -216,7 +216,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McabilityCommand());
|
|
command.setExecutor(new McabilityCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcmmoCommand() {
|
|
|
|
|
|
+ private static void registerMcmmoCommand() {
|
|
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.description;mcmmo.commands.mcmmo.help");
|
|
command.setPermission("mcmmo.commands.mcmmo.description;mcmmo.commands.mcmmo.help");
|
|
@@ -226,7 +226,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McmmoCommand());
|
|
command.setExecutor(new McmmoCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcrankCommand() {
|
|
|
|
|
|
+ private static void registerMcrankCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcrank");
|
|
PluginCommand command = mcMMO.p.getCommand("mcrank");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcrank"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcrank"));
|
|
command.setPermission("mcmmo.commands.mcrank;mcmmo.commands.mcrank.others;mcmmo.commands.mcrank.others.far;mcmmo.commands.mcrank.others.offline");
|
|
command.setPermission("mcmmo.commands.mcrank;mcmmo.commands.mcrank.others;mcmmo.commands.mcrank.others.far;mcmmo.commands.mcrank.others.offline");
|
|
@@ -235,7 +235,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McrankCommand());
|
|
command.setExecutor(new McrankCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcstatsCommand() {
|
|
|
|
|
|
+ private static void registerMcstatsCommand() {
|
|
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");
|
|
@@ -244,7 +244,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McstatsCommand());
|
|
command.setExecutor(new McstatsCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMctopCommand() {
|
|
|
|
|
|
+ private static void registerMctopCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mctop");
|
|
PluginCommand command = mcMMO.p.getCommand("mctop");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mctop"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mctop"));
|
|
command.setPermission("mcmmo.commands.mctop"); // Only need the main one, not the individual skill ones
|
|
command.setPermission("mcmmo.commands.mctop"); // Only need the main one, not the individual skill ones
|
|
@@ -253,7 +253,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new MctopCommand());
|
|
command.setExecutor(new MctopCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcpurgeCommand() {
|
|
|
|
|
|
+ private static void registerMcpurgeCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcpurge");
|
|
PluginCommand command = mcMMO.p.getCommand("mcpurge");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcpurge", Config.getInstance().getOldUsersCutoff()));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcpurge", Config.getInstance().getOldUsersCutoff()));
|
|
command.setPermissionMessage(permissionsMessage);
|
|
command.setPermissionMessage(permissionsMessage);
|
|
@@ -261,7 +261,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McpurgeCommand());
|
|
command.setExecutor(new McpurgeCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcremoveCommand() {
|
|
|
|
|
|
+ private static void registerMcremoveCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcremove");
|
|
PluginCommand command = mcMMO.p.getCommand("mcremove");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcremove"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcremove"));
|
|
command.setPermissionMessage(permissionsMessage);
|
|
command.setPermissionMessage(permissionsMessage);
|
|
@@ -269,7 +269,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McremoveCommand());
|
|
command.setExecutor(new McremoveCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMmoupdateCommand() {
|
|
|
|
|
|
+ private static void registerMmoupdateCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mmoupdate");
|
|
PluginCommand command = mcMMO.p.getCommand("mmoupdate");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mmoupdate"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mmoupdate"));
|
|
command.setPermissionMessage(permissionsMessage);
|
|
command.setPermissionMessage(permissionsMessage);
|
|
@@ -277,7 +277,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new MmoupdateCommand());
|
|
command.setExecutor(new MmoupdateCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerAdminChatCommand() {
|
|
|
|
|
|
+ private static void registerAdminChatCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("adminchat");
|
|
PluginCommand command = mcMMO.p.getCommand("adminchat");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.adminchat"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.adminchat"));
|
|
command.setPermission("mcmmo.chat.adminchat");
|
|
command.setPermission("mcmmo.chat.adminchat");
|
|
@@ -288,7 +288,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new AdminChatCommand());
|
|
command.setExecutor(new AdminChatCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerPartyChatCommand() {
|
|
|
|
|
|
+ private static void registerPartyChatCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("partychat");
|
|
PluginCommand command = mcMMO.p.getCommand("partychat");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.partychat"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.partychat"));
|
|
command.setPermission("mcmmo.chat.partychat;mcmmo.commands.party");
|
|
command.setPermission("mcmmo.chat.partychat;mcmmo.commands.party");
|
|
@@ -299,7 +299,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new PartyChatCommand());
|
|
command.setExecutor(new PartyChatCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMchudCommand() {
|
|
|
|
|
|
+ private static void registerMchudCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mchud");
|
|
PluginCommand command = mcMMO.p.getCommand("mchud");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mchud"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mchud"));
|
|
command.setPermission("mcmmo.commands.mchud");
|
|
command.setPermission("mcmmo.commands.mchud");
|
|
@@ -308,7 +308,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new MchudCommand());
|
|
command.setExecutor(new MchudCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerXplockCommand() {
|
|
|
|
|
|
+ private static void registerXplockCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("xplock");
|
|
PluginCommand command = mcMMO.p.getCommand("xplock");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.xplock"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.xplock"));
|
|
command.setPermission("mcmmo.commands.xplock");
|
|
command.setPermission("mcmmo.commands.xplock");
|
|
@@ -319,7 +319,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new XplockCommand());
|
|
command.setExecutor(new XplockCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerPartyCommand() {
|
|
|
|
|
|
+ private static void registerPartyCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("party");
|
|
PluginCommand command = mcMMO.p.getCommand("party");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.party"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.party"));
|
|
command.setPermission("mcmmo.commands.party;mcmmo.commands.party.accept;mcmmo.commands.party.create;mcmmo.commands.party.disband;" +
|
|
command.setPermission("mcmmo.commands.party;mcmmo.commands.party.accept;mcmmo.commands.party.create;mcmmo.commands.party.disband;" +
|
|
@@ -330,7 +330,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new PartyCommand());
|
|
command.setExecutor(new PartyCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerPtpCommand() {
|
|
|
|
|
|
+ private static void registerPtpCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("ptp");
|
|
PluginCommand command = mcMMO.p.getCommand("ptp");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.ptp"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.ptp"));
|
|
command.setPermission("mcmmo.commands.ptp"); // Only need the main one, not the individual ones for toggle/accept/acceptall
|
|
command.setPermission("mcmmo.commands.ptp"); // Only need the main one, not the individual ones for toggle/accept/acceptall
|
|
@@ -340,7 +340,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new PtpCommand());
|
|
command.setExecutor(new PtpCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerHardcoreCommand() {
|
|
|
|
|
|
+ private static void registerHardcoreCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("hardcore");
|
|
PluginCommand command = mcMMO.p.getCommand("hardcore");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.hardcore"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.hardcore"));
|
|
command.setPermission("mcmmo.commands.hardcore;mcmmo.commands.hardcore.toggle;mcmmo.commands.hardcore.modify");
|
|
command.setPermission("mcmmo.commands.hardcore;mcmmo.commands.hardcore.toggle;mcmmo.commands.hardcore.modify");
|
|
@@ -350,7 +350,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new HardcoreCommand());
|
|
command.setExecutor(new HardcoreCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerVampirismCommand() {
|
|
|
|
|
|
+ private static void registerVampirismCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("vampirism");
|
|
PluginCommand command = mcMMO.p.getCommand("vampirism");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.vampirism"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.vampirism"));
|
|
command.setPermission("mcmmo.commands.vampirism;mcmmo.commands.vampirism.toggle;mcmmo.commands.vampirism.modify");
|
|
command.setPermission("mcmmo.commands.vampirism;mcmmo.commands.vampirism.toggle;mcmmo.commands.vampirism.modify");
|
|
@@ -360,7 +360,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new VampirismCommand());
|
|
command.setExecutor(new VampirismCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcnotifyCommand() {
|
|
|
|
|
|
+ private static void registerMcnotifyCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcnotify");
|
|
PluginCommand command = mcMMO.p.getCommand("mcnotify");
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcnotify"));
|
|
command.setDescription(LocaleLoader.getString("Commands.Description.mcnotify"));
|
|
command.setPermission("mcmmo.commands.mcnotify");
|
|
command.setPermission("mcmmo.commands.mcnotify");
|
|
@@ -369,7 +369,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new McnotifyCommand());
|
|
command.setExecutor(new McnotifyCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMobhealthCommand() {
|
|
|
|
|
|
+ private static void registerMobhealthCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mobhealth");
|
|
PluginCommand command = mcMMO.p.getCommand("mobhealth");
|
|
command.setDescription("Change the style of the mob healthbar"); //TODO: Localize
|
|
command.setDescription("Change the style of the mob healthbar"); //TODO: Localize
|
|
command.setPermission("mcmmo.commands.mobhealth");
|
|
command.setPermission("mcmmo.commands.mobhealth");
|
|
@@ -378,7 +378,7 @@ public final class CommandRegistrationManager {
|
|
command.setExecutor(new MobhealthCommand());
|
|
command.setExecutor(new MobhealthCommand());
|
|
}
|
|
}
|
|
|
|
|
|
- public static void registerMcscoreboardCommand() {
|
|
|
|
|
|
+ private static void registerMcscoreboardCommand() {
|
|
PluginCommand command = mcMMO.p.getCommand("mcscoreboard");
|
|
PluginCommand command = mcMMO.p.getCommand("mcscoreboard");
|
|
command.setDescription("Change the current mcMMO scoreboard being displayed"); //TODO: Localize
|
|
command.setDescription("Change the current mcMMO scoreboard being displayed"); //TODO: Localize
|
|
command.setPermission("mcmmo.commands.mcscoreboard");
|
|
command.setPermission("mcmmo.commands.mcscoreboard");
|
|
@@ -387,4 +387,52 @@ public final class CommandRegistrationManager {
|
|
command.setUsage(command.getUsage() + "\n" + LocaleLoader.getString("Commands.Usage.3", "mcscoreboard", "top", "[" + LocaleLoader.getString("Commands.Usage.Skill") + "]", "[" + LocaleLoader.getString("Commands.Usage.Page") + "]"));
|
|
command.setUsage(command.getUsage() + "\n" + LocaleLoader.getString("Commands.Usage.3", "mcscoreboard", "top", "[" + LocaleLoader.getString("Commands.Usage.Skill") + "]", "[" + LocaleLoader.getString("Commands.Usage.Page") + "]"));
|
|
command.setExecutor(new McscoreboardCommand());
|
|
command.setExecutor(new McscoreboardCommand());
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public static void registerCommands() {
|
|
|
|
+ // Generic Commands
|
|
|
|
+ registerMcabilityCommand();
|
|
|
|
+ registerMcgodCommand();
|
|
|
|
+ registerMcmmoCommand();
|
|
|
|
+ registerMcnotifyCommand();
|
|
|
|
+ registerMcrefreshCommand();
|
|
|
|
+ registerMcscoreboardCommand();
|
|
|
|
+ registerMobhealthCommand();
|
|
|
|
+ registerXprateCommand();
|
|
|
|
+
|
|
|
|
+ // Chat Commands
|
|
|
|
+ registerPartyChatCommand();
|
|
|
|
+ registerAdminChatCommand();
|
|
|
|
+
|
|
|
|
+ // Database Commands
|
|
|
|
+ registerMcpurgeCommand();
|
|
|
|
+ registerMcremoveCommand();
|
|
|
|
+ registerMmoupdateCommand();
|
|
|
|
+
|
|
|
|
+ // Experience Commands
|
|
|
|
+ registerAddlevelsCommand();
|
|
|
|
+ registerAddxpCommand();
|
|
|
|
+ registerMmoeditCommand();
|
|
|
|
+ registerSkillresetCommand();
|
|
|
|
+
|
|
|
|
+ // Hardcore Commands
|
|
|
|
+ registerHardcoreCommand();
|
|
|
|
+ registerVampirismCommand();
|
|
|
|
+
|
|
|
|
+ // Party Commands
|
|
|
|
+ registerPartyCommand();
|
|
|
|
+ registerPtpCommand();
|
|
|
|
+
|
|
|
|
+ // Player Commands
|
|
|
|
+ registerInspectCommand();
|
|
|
|
+ registerMcrankCommand();
|
|
|
|
+ registerMcstatsCommand();
|
|
|
|
+ registerMctopCommand();
|
|
|
|
+
|
|
|
|
+ // Skill Commands
|
|
|
|
+ registerSkillCommands();
|
|
|
|
+
|
|
|
|
+ // Spout Commands
|
|
|
|
+ registerXplockCommand();
|
|
|
|
+ registerMchudCommand();
|
|
|
|
+ }
|
|
}
|
|
}
|