[Commands] Cleanup #reloadstatic Command. (#2130)

- Cleanup messages and logic.
- Make reloading of static zone data global instead of zone specific.
This commit is contained in:
Kinglykrab
2022-05-06 20:03:22 -04:00
committed by GitHub
parent adfec15893
commit 6846deb9c8
5 changed files with 39 additions and 3 deletions
+4 -2
View File
@@ -2,7 +2,9 @@
void command_reloadstatic(Client *c, const Seperator *sep)
{
c->Message(Chat::White, "Reloading zone static data...");
zone->ReloadStaticData();
c->Message(Chat::White, "Attempting to reload static zone data globally.");
auto pack = new ServerPacket(ServerOP_ReloadStaticZoneData, 0);
worldserver.SendPacket(pack);
safe_delete(pack);
}