Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.

Port From (https://github.com/TrinityCore/TrinityCore/commit/5ed891a0f0c65cf4c844ccb209952352f4241193)
This commit is contained in:
hondacrx
2021-11-15 19:38:21 -05:00
parent ea79641eb3
commit 30af4577f8
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -763,7 +763,7 @@ namespace Framework.Constants
CommandListScenes = 849,
CommandReloadSceneTemplate = 850,
CommandReloadAreatriggerTemplate = 851,
// = 852, // DEPRECATED: DON'T REUSE
CommandDebugDummy = 852,
CommandReloadConversationTemplate = 853,
CommandDebugConversation = 854,
CommandDebugPlayMusic = 855,
@@ -126,6 +126,13 @@ namespace Game.Chat
return Conversation.CreateConversation(conversationEntry, target, target, target.GetGUID()) != null;
}
[Command("dummy", RBACPermissions.CommandDebugDummy)]
static bool HandleDebugDummyCommand(StringArguments args, CommandHandler handler)
{
handler.SendSysMessage("This command does nothing right now. Edit your local core (DebugCommands.cs) to make it do whatever you need for testing.");
return true;
}
[Command("entervehicle", RBACPermissions.CommandDebugEntervehicle)]
static bool HandleDebugEnterVehicleCommand(StringArguments args, CommandHandler handler)
{