[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 authored and GitHub committed 2022-05-06 20:03:22 -04:00
1 parent adfec15893
commit 6846deb9c8
5 files changed
+39 -3

No files matched your search

+28
View File
@@ -2024,6 +2024,34 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
parse->LoadPerlEventExportSettings(parse->perl_event_export_settings);
break;
}
case ServerOP_ReloadStaticZoneData: {
if (zone) {
worldserver.SendEmoteMessage(
0,
0,
AccountStatus::GMAdmin,
Chat::Yellow,
fmt::format(
"Static zone data reloaded for {}{}.",
fmt::format(
"{} ({})",
zone->GetLongName(),
zone->GetZoneID()
),
(
zone->GetInstanceID() ?
fmt::format(
" (Instance ID {})",
zone->GetInstanceID()
) :
""
)
).c_str()
);
zone->ReloadStaticData();
}
break;
}
case ServerOP_CameraShake:
{
if (zone)