mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
[Commands] Cleanup #reloadlevelmods Command. (#2122)
* [Commands] Cleanup #reloadlevelmods Command. - Cleanup messages and logic. - Make the reloading of modifiers global instead of zone-specific. * Remove unnecessary message. * Update worldserver.cpp * Update worldserver.cpp * Update worldserver.cpp
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
void command_reloadlevelmods(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (sep->arg[1][0] == 0) {
|
||||
if (RuleB(Zone, LevelBasedEXPMods)) {
|
||||
zone->LoadLevelEXPMods();
|
||||
c->Message(Chat::Yellow, "Level based EXP Mods have been reloaded zonewide");
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::Yellow, "Level based EXP Mods are disabled in rules!");
|
||||
}
|
||||
if (!RuleB(Zone, LevelBasedEXPMods)) {
|
||||
c->Message(Chat::White, "Level based experience modifiers are disabled.");
|
||||
return;
|
||||
}
|
||||
|
||||
c->Message(Chat::White, "Attempted to reload level based experience modifiers globally.");
|
||||
auto pack = new ServerPacket(ServerOP_ReloadLevelEXPMods, 0);
|
||||
worldserver.SendPacket(pack);
|
||||
safe_delete(pack);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user