mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-27 17:45:28 +02:00
Debug Stick is now replaced by /mmodebug
This commit is contained in:
@@ -2,6 +2,7 @@ package com.gmail.nossr50.util.commands;
|
||||
|
||||
import com.gmail.nossr50.commands.*;
|
||||
import com.gmail.nossr50.commands.admin.McmmoReloadLocaleCommand;
|
||||
import com.gmail.nossr50.commands.admin.PlayerDebugCommand;
|
||||
import com.gmail.nossr50.commands.chat.AdminChatCommand;
|
||||
import com.gmail.nossr50.commands.chat.McChatSpy;
|
||||
import com.gmail.nossr50.commands.chat.PartyChatCommand;
|
||||
@@ -150,6 +151,15 @@ public final class CommandRegistrationManager {
|
||||
command.setExecutor(new MmoInfoCommand());
|
||||
}
|
||||
|
||||
private static void registerMmoDebugCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mmodebug");
|
||||
command.setDescription(LocaleLoader.getString("Commands.Description.mmodebug"));
|
||||
command.setPermission(null); //No perm required to save support headaches
|
||||
command.setPermissionMessage(permissionsMessage);
|
||||
command.setUsage(LocaleLoader.getString("Commands.Usage.0", "mmodebug"));
|
||||
command.setExecutor(new PlayerDebugCommand());
|
||||
}
|
||||
|
||||
private static void registerMcChatSpyCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mcchatspy");
|
||||
command.setDescription(LocaleLoader.getString("Commands.Description.mcchatspy"));
|
||||
@@ -413,6 +423,7 @@ public final class CommandRegistrationManager {
|
||||
public static void registerCommands() {
|
||||
// Generic Commands
|
||||
registerMmoInfoCommand();
|
||||
registerMmoDebugCommand();
|
||||
registerMcImportCommand();
|
||||
registerMcabilityCommand();
|
||||
registerMcgodCommand();
|
||||
|
Reference in New Issue
Block a user