chore: split out slash commands into multiple files (#1539)

* chore: split out slash commands into multiple files
Breakup the monolithic file
don't register slashcommands on startup

* fix typo
This commit is contained in:
Aaron Kimbrell
2024-04-09 20:15:51 -05:00
committed by GitHub
parent 1ee45639af
commit d067a8d12f
11 changed files with 2297 additions and 2253 deletions

View File

@@ -314,8 +314,8 @@ int main(int argc, char** argv) {
uint32_t sqlPingTime = 10 * 60 * currentFramerate; // 10 minutes in frames
uint32_t emptyShutdownTime = (cloneID == 0 ? 30 : 5) * 60 * currentFramerate; // 30 minutes for main worlds, 5 for all others.
// Register slash commands
SlashCommandHandler::Startup();
// Register slash commands if not in zone 0
if (zoneID != 0) SlashCommandHandler::Startup();
Game::logger->Flush(); // once immediately before the main loop
while (true) {