mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-08 11:44:11 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user