mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feat/conf: toggle sending reload message to players
* Add conf * Add stuff
This commit is contained in:
@@ -133,7 +133,10 @@ void Eluna::_ReloadEluna()
|
||||
LOCK_ELUNA;
|
||||
ASSERT(IsInitialized());
|
||||
|
||||
eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||
if (eConfigMgr->GetOption<bool>("Eluna.PlayerAnnounceReload", false))
|
||||
eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||
else
|
||||
eWorld->SendGMText(SERVER_MSG_STRING, "Reloading Eluna...");
|
||||
|
||||
// Remove all timed events
|
||||
sEluna->eventMgr->SetStates(LUAEVENT_STATE_ERASE);
|
||||
|
||||
Reference in New Issue
Block a user