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

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