diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-09-17 11:18:06 +0200 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2018-09-17 11:18:06 +0200 |
commit | 97ade1321b6d18393202a1448f2b042fc1ff0546 (patch) | |
tree | 1d44d7394c45c2166ef13fbc8be7b1607d6175ba /src/server/scripts/Commands | |
parent | bf6082a8354910beef00551b1c17bcdfe9492ab1 (diff) |
Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything.
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 59ea2cde03c..210ce1d92c5 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -107,6 +107,7 @@ public: { "raidreset", rbac::RBAC_PERM_COMMAND_INSTANCE_UNBIND, false, &HandleDebugRaidResetCommand, "" }, { "neargraveyard", rbac::RBAC_PERM_COMMAND_NEARGRAVEYARD, false, &HandleDebugNearGraveyard, "" }, { "instancespawn", rbac::RBAC_PERM_COMMAND_DEBUG_INSTANCESPAWN, false, &HandleDebugInstanceSpawns, "" }, + { "dummy", rbac::RBAC_PERM_COMMAND_DEBUG_DUMMY, false, &HandleDebugDummyCommand, "" }, }; static std::vector<ChatCommand> commandTable = { @@ -1842,6 +1843,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() |