Skip to content

Commit

Permalink
[Commands] Cleanup #reloadrulesworld Command. (#2128)
Browse files Browse the repository at this point in the history
- Cleanup messages and logic.
  • Loading branch information
Kinglykrab authored May 7, 2022
1 parent 6846deb commit b583d95
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions zone/gm_commands/reloadworldrules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit b583d95

Please sign in to comment.