[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
3 changed files with 7 additions and 10 deletions
+4 -7
View File
@@ -5,12 +5,9 @@ extern WorldServer worldserver;
void command_reloadallrules(Client *c, const Seperator *sep)
{
if (c) {
auto pack = new ServerPacket(ServerOP_ReloadRules, 0);
worldserver.SendPacket(pack);
c->Message(Chat::Red, "Successfully sent the packet to world to reload rules globally. (including world)");
safe_delete(pack);
}
c->Message(Chat::White, "Attempting to reload all rules globally.");
auto pack = new ServerPacket(ServerOP_ReloadRules, 0);
worldserver.SendPacket(pack);
safe_delete(pack);
}