diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-09-17 11:18:06 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2021-11-08 23:18:32 +0100 |
| commit | 5ed891a0f0c65cf4c844ccb209952352f4241193 (patch) | |
| tree | 481f4ef950d4d71ba3fdeff78f919ed0e74203a8 /src/server/scripts/Commands | |
| parent | 4c2313a44b0c77828d1d1ce66ac9679f446b5277 (diff) | |
Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.
(cherry picked from commit 97ade1321b6d18393202a1448f2b042fc1ff0546)
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index f78442af163..83b70f51c92 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -115,6 +115,7 @@ public: { "conversation" , rbac::RBAC_PERM_COMMAND_DEBUG_CONVERSATION, false, &HandleDebugConversationCommand, "" }, { "worldstate" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWorldStateCommand, "" }, { "wsexpression" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWSExpressionCommand, "" }, + { "dummy", rbac::RBAC_PERM_COMMAND_DEBUG_DUMMY, false, &HandleDebugDummyCommand, "" }, }; static std::vector<ChatCommand> commandTable = { @@ -1697,6 +1698,12 @@ public: return true; }; + + static bool HandleDebugDummyCommand(ChatHandler* handler, CommandArgs* /*args*/) + { + handler->SendSysMessage("This command does nothing right now. Edit your local core (cs_debug.cpp) to make it do whatever you need for testing."); + return true; + } }; void AddSC_debug_commandscript() |
