[Commands] Cleanup #reloadallrules Command. (#2121)

* [Commands] Cleanup #reloadallrules Command.
- Cleanup messages.

* Typo.
This commit is contained in:
Kinglykrab 2022-05-06 20:26:39 -04:00 committed by GitHub
parent 1d59fff2bf
commit c1aa3e7056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View File

@ -288,7 +288,7 @@ int command_init(void)
command_add("randomfeatures", "- Temporarily randomizes the Facial Features of your target", AccountStatus::QuestTroupe, command_randomfeatures) || command_add("randomfeatures", "- Temporarily randomizes the Facial Features of your target", AccountStatus::QuestTroupe, command_randomfeatures) ||
command_add("refreshgroup", "- Refreshes Group.", AccountStatus::Player, command_refreshgroup) || command_add("refreshgroup", "- Refreshes Group.", AccountStatus::Player, command_refreshgroup) ||
command_add("reloadaa", "Reloads AA data", AccountStatus::GMMgmt, command_reloadaa) || command_add("reloadaa", "Reloads AA data", AccountStatus::GMMgmt, command_reloadaa) ||
command_add("reloadallrules", "Executes a reload of all rules.", AccountStatus::QuestTroupe, command_reloadallrules) || command_add("reloadallrules", "Executes a reload of all rules globally.", AccountStatus::QuestTroupe, command_reloadallrules) ||
command_add("reloadcontentflags", "Executes a reload of all expansion and content flags", AccountStatus::QuestTroupe, command_reloadcontentflags) || command_add("reloadcontentflags", "Executes a reload of all expansion and content flags", AccountStatus::QuestTroupe, command_reloadcontentflags) ||
command_add("reloademote", "Reloads NPC Emotes", AccountStatus::QuestTroupe, command_reloademote) || command_add("reloademote", "Reloads NPC Emotes", AccountStatus::QuestTroupe, command_reloademote) ||
command_add("reloadlevelmods", nullptr, AccountStatus::Max, command_reloadlevelmods) || command_add("reloadlevelmods", nullptr, AccountStatus::Max, command_reloadlevelmods) ||

View File

@ -5,12 +5,9 @@ extern WorldServer worldserver;
void command_reloadallrules(Client *c, const Seperator *sep) void command_reloadallrules(Client *c, const Seperator *sep)
{ {
if (c) { c->Message(Chat::White, "Attempting to reload all rules globally.");
auto pack = new ServerPacket(ServerOP_ReloadRules, 0); auto pack = new ServerPacket(ServerOP_ReloadRules, 0);
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
c->Message(Chat::Red, "Successfully sent the packet to world to reload rules globally. (including world)"); safe_delete(pack);
safe_delete(pack);
}
} }

View File

@ -1993,7 +1993,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
AccountStatus::GMAdmin, AccountStatus::GMAdmin,
Chat::Yellow, Chat::Yellow,
fmt::format( fmt::format(
"Rules reloaded for {}.", "Rules reloaded for {}{}.",
fmt::format( fmt::format(
"{} ({})", "{} ({})",
zone->GetLongName(), zone->GetLongName(),
@ -2002,7 +2002,7 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
( (
zone->GetInstanceID() ? zone->GetInstanceID() ?
fmt::format( fmt::format(
"Instance ID: {}", " (Instance ID {})",
zone->GetInstanceID() zone->GetInstanceID()
) : ) :
"" ""