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:
@@ -19,10 +19,16 @@
|
|||||||
# The path can be relative or absolute.
|
# The path can be relative or absolute.
|
||||||
# Default: "lua_scripts"
|
# 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.Enabled = true
|
||||||
Eluna.TraceBack = false
|
Eluna.TraceBack = false
|
||||||
Eluna.ScriptPath = "lua_scripts"
|
Eluna.ScriptPath = "lua_scripts"
|
||||||
|
Eluna.PlayerAnnounceReload = false
|
||||||
|
|
||||||
|
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|||||||
@@ -133,7 +133,10 @@ void Eluna::_ReloadEluna()
|
|||||||
LOCK_ELUNA;
|
LOCK_ELUNA;
|
||||||
ASSERT(IsInitialized());
|
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
|
// Remove all timed events
|
||||||
sEluna->eventMgr->SetStates(LUAEVENT_STATE_ERASE);
|
sEluna->eventMgr->SetStates(LUAEVENT_STATE_ERASE);
|
||||||
|
|||||||
Reference in New Issue
Block a user