mirror of
https://github.com/azerothcore/mod-aoe-loot
synced 2025-11-29 13:28:15 +08:00
chore. Enable or disable message when logging in (#40)
This commit is contained in:
@@ -25,6 +25,15 @@
|
||||
|
||||
AOELoot.Enable = 1
|
||||
|
||||
#
|
||||
# AOELoot.Message
|
||||
# Description: Enable message on login
|
||||
# Default: 0 - (Disabled)
|
||||
# 1 - (Enabled)
|
||||
#
|
||||
|
||||
AOELoot.Message = 1
|
||||
|
||||
#
|
||||
# AOELoot.MailEnable
|
||||
# Description: Enables the sending of mail if there are no spaces in the bags.
|
||||
|
||||
@@ -116,7 +116,8 @@ void AoeLootPlayer::OnLogin(Player* player)
|
||||
{
|
||||
if (sConfigMgr->GetOption<bool>("AOELoot.Enable", true))
|
||||
{
|
||||
ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE);
|
||||
if (sConfigMgr->GetOption<bool>("AOELoot.Message", true))
|
||||
ChatHandler(player->GetSession()).PSendSysMessage(AOE_ACORE_STRING_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user