[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
+8 -2
View File
@@ -778,8 +778,14 @@ void ConsoleWorldShutdown(
zoneserver_list.WorldShutDown(0, 0);
}
else if (strcasecmp(args[0].c_str(), "disable") == 0) {
connection->SendLine("<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World shutdown aborted.");
zoneserver_list.SendEmoteMessage(0, 0, 0, 15, "<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World shutdown aborted.");
connection->SendLine("[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();
}