Updates to work with latest acore source

This commit is contained in:
2025-01-12 18:22:35 -05:00
parent ccf222ec4f
commit 5986d314c7
2 changed files with 4 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
#include "MpDataStore.h"
#include "Group.h"
#include "MpLogger.h"
#include "Chat.h"
// Adds an entry for the group difficult to memory and updats database
void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
@@ -55,7 +56,7 @@ void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
MpLogger::error("AddGroupData called with null player in instance");
}
player->GetSession()->SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
ChatHandler(player->GetSession()).SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
}
}
@@ -77,7 +78,7 @@ void MpDataStore::AddGroupData(Group *group, MpGroupData groupData) {
MpLogger::error("AddGroupData called with null player in instance");
}
player->GetSession()->SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
ChatHandler(player->GetSession()).SendNotification("The group leader has changed the difficulty setting. You have been removed from the instance.");
}
}

View File

@@ -65,7 +65,7 @@ public:
for(auto it = players.begin(); it != players.end(); ++it)
{
Player* player = it->GetSource();
player->GetSession()->SendNotification("Your group has died too many time to continue. %u", totalDeaths);
ChatHandler(player->GetSession()).PSendSysMessage("Your group has died too many time to continue. %u", totalDeaths);
}
map->RemoveAllPlayers();
map->ToInstanceMap()->Reset(0);