[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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