diff --git a/data/sql/updates/pending_db_world/rev_1636416788284117500.sql b/data/sql/updates/pending_db_world/rev_1636416788284117500.sql new file mode 100644 index 000000000..59e01b515 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1636416788284117500.sql @@ -0,0 +1,7 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1636416788284117500'); + +DELETE FROM `command` WHERE `name`='debug dummy'; +INSERT INTO `command` (`name`,`security`,`help`) VALUES +('debug dummy',3,'Syntax: .debug dummy + +Catch-all debug command. Does nothing by default. If you want it to do things for testing, add the things to its script in cs_debug.cpp.'); diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 6b2c480ec..3a8874a46 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -101,7 +101,8 @@ public: { "lfg", HandleDebugDungeonFinderCommand, SEC_ADMINISTRATOR, Console::No }, { "los", HandleDebugLoSCommand, SEC_ADMINISTRATOR, Console::No }, { "moveflags", HandleDebugMoveflagsCommand, SEC_ADMINISTRATOR, Console::No }, - { "unitstate", HandleDebugUnitStateCommand, SEC_ADMINISTRATOR, Console::No } + { "unitstate", HandleDebugUnitStateCommand, SEC_ADMINISTRATOR, Console::No }, + { "dummy", HandleDebugDummyCommand, SEC_ADMINISTRATOR, Console::No } }; static ChatCommandTable commandTable = { @@ -1244,6 +1245,12 @@ public: handler->PSendSysMessage("Waypoint SQL written to SQL Developer log"); return true; } + + static bool HandleDebugDummyCommand(ChatHandler* handler) + { + 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()