[Commands] Cleanup #worldshutdown Command. (#1694)

- Cleanup system messages and magic numbers.
This commit is contained in:
Kinglykrab
2021-11-07 17:21:42 -05:00
committed by GitHub
parent bf92845a4a
commit 90871cb3d9
4 changed files with 84 additions and 29 deletions
+14 -2
View File
@@ -750,8 +750,20 @@ void Console::ProcessCommand(const char* command) {
zoneserver_list.WorldShutDown(0, 0);
}
else if(strcasecmp(sep.arg[1], "disable") == 0) {
SendEmoteMessage(0,0,0,15,"<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World shutdown aborted.");
zoneserver_list.SendEmoteMessage(0,0,0,15,"<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World shutdown aborted.");
SendEmoteMessage(
0,
0,
0,
Chat::Yellow,
"[SYSTEM] World shutdown has been aborted."
);
zoneserver_list.SendEmoteMessage(
0,
0,
0,
Chat::Yellow,
"[SYSTEM] World shutdown has been aborted."
);
zoneserver_list.shutdowntimer->Disable();
zoneserver_list.reminder->Disable();
}