[Commands] Cleanup #shownpcgloballoot and #showzonegloballoot Command. (#2141)

- Cleanup messages and logic.
This commit is contained in:
Kinglykrab
2022-05-06 19:50:03 -04:00
committed by GitHub
parent 5aaaaed6f1
commit e5acc7c322
4 changed files with 70 additions and 16 deletions
+7 -4
View File
@@ -4,10 +4,13 @@ void command_showzonegloballoot(Client *c, const Seperator *sep)
{
c->Message(
Chat::White,
"GlobalLoot for %s (%d:%d)",
zone->GetShortName(),
zone->GetZoneID(),
zone->GetInstanceVersion());
fmt::format(
"Global loot for {} ({}).",
zone->GetLongName(),
zone->GetZoneID()
).c_str()
);
zone->ShowZoneGlobalLoot(c);
}