mirror of
https://github.com/azerothcore/mod-solo-lfg
synced 2025-11-29 15:58:17 +08:00
fix(conf): Missing conf + rename other conf
This commit is contained in:
@@ -4,13 +4,19 @@
|
|||||||
# SOLO LFG
|
# SOLO LFG
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
# EnableSoloLfg
|
# SoloLFG.Enable
|
||||||
# Description: Enable the module
|
# Description: Enable the module
|
||||||
# Default: 1 - (Enabled)
|
# Default: 1 - (Enabled)
|
||||||
# 0 - (Disabled)
|
# 0 - (Disabled)
|
||||||
|
|
||||||
|
|
||||||
LFG.SoloMode = 1
|
SoloLFG.Enable = 1
|
||||||
|
|
||||||
|
# SoloLFG.Announce
|
||||||
|
# Description: Announce the module
|
||||||
|
# Default: 1 - (Enabled)
|
||||||
|
# 0 - (Disabled)
|
||||||
|
|
||||||
###################################################################################################
|
SoloLFG.Announce = 1
|
||||||
|
|
||||||
|
###################################################################################################
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ public:
|
|||||||
// Announce Module
|
// Announce Module
|
||||||
if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true))
|
if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true))
|
||||||
{
|
{
|
||||||
ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Solo Dungeon Finder |rmodule.");
|
ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cff4CFF00Solo Dungeon Finder |rmodule.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ public:
|
|||||||
// to the player variable to tell the compiler it is fine not to use it.
|
// to the player variable to tell the compiler it is fine not to use it.
|
||||||
void OnLogin(Player* player)
|
void OnLogin(Player* player)
|
||||||
{
|
{
|
||||||
if (sConfigMgr->GetIntDefault("LFG.SoloMode", true))
|
if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true))
|
||||||
{
|
{
|
||||||
if (!sLFGMgr->IsSoloLFG())
|
if (!sLFGMgr->IsSoloLFG())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user