[Commands] Cleanup #reloadrulesworld Command. (#2128)

- Cleanup messages and logic.
This commit is contained in:
Kinglykrab
2022-05-06 20:05:40 -04:00
committed by GitHub
parent 6846deb9c8
commit b583d95f09
+1 -3
View File
@@ -5,11 +5,9 @@ extern WorldServer worldserver;
void command_reloadworldrules(Client *c, const Seperator *sep) void command_reloadworldrules(Client *c, const Seperator *sep)
{ {
if (c) { c->Message(Chat::White, "Attempting to reload world only rules.");
auto pack = new ServerPacket(ServerOP_ReloadRulesWorld, 0); auto pack = new ServerPacket(ServerOP_ReloadRulesWorld, 0);
worldserver.SendPacket(pack); worldserver.SendPacket(pack);
c->Message(Chat::Red, "Successfully sent the packet to world to reload rules. (only world)");
safe_delete(pack); safe_delete(pack);
}
} }