mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
* [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
16 lines
430 B
C++
Executable File
16 lines
430 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_reloadlevelmods(Client *c, const Seperator *sep)
|
|
{
|
|
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);
|
|
}
|
|
|