chore. Enable or disable message when logging in (#40)

This commit is contained in:
Walter Pagani
2024-08-15 14:20:28 -03:00
committed by GitHub
parent 7633396693
commit 92bf84b358
2 changed files with 11 additions and 1 deletions

View File

@@ -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.

View File

@@ -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);
}
}