[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
+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)