mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 03:11:28 +00:00
[Commands] Cleanup #reloadallrules Command. (#2121)
* [Commands] Cleanup #reloadallrules Command. - Cleanup messages. * Typo.
This commit is contained in:
parent
1d59fff2bf
commit
c1aa3e7056
@ -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) ||
|
||||||
|
|||||||
@ -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);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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()
|
||||||
) :
|
) :
|
||||||
""
|
""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user