diff --git a/conf/mod_LuaEngine.conf.dist b/conf/mod_LuaEngine.conf.dist index 0fd798c..d94eb23 100644 --- a/conf/mod_LuaEngine.conf.dist +++ b/conf/mod_LuaEngine.conf.dist @@ -19,10 +19,16 @@ # The path can be relative or absolute. # Default: "lua_scripts" # +# Eluna.PlayerAnnounceReload +# Description: Enable or disable whether the reload announcement is sent to players (Lowest security level). +# Default: false - (disabled) +# true - (enabled) +# Eluna.Enabled = true Eluna.TraceBack = false Eluna.ScriptPath = "lua_scripts" +Eluna.PlayerAnnounceReload = false ################################################################################################### diff --git a/src/LuaEngine/LuaEngine.cpp b/src/LuaEngine/LuaEngine.cpp index 0682ab6..93421c5 100644 --- a/src/LuaEngine/LuaEngine.cpp +++ b/src/LuaEngine/LuaEngine.cpp @@ -133,7 +133,10 @@ void Eluna::_ReloadEluna() LOCK_ELUNA; ASSERT(IsInitialized()); - eWorld->SendServerMessage(SERVER_MSG_STRING, "Reloading Eluna..."); + if (eConfigMgr->GetOption("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);