mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Merge pull request #79 from r-o-b-o-t-o/feat/add-on-report-event
feat: add OnReport event
This commit is contained in:
@@ -769,6 +769,7 @@ bool AnticheatMgr::MustCheckTempReports(uint8 type)
|
||||
|
||||
void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
|
||||
{
|
||||
OnReport(player, reportType);
|
||||
ObjectGuid key = player->GetGUID();
|
||||
|
||||
if (MustCheckTempReports(reportType))
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "AnticheatData.h"
|
||||
#include "Chat.h"
|
||||
#include "ObjectGuid.h"
|
||||
#include "EventEmitter.h"
|
||||
|
||||
class Player;
|
||||
class AnticheatData;
|
||||
@@ -66,6 +67,8 @@ class AnticheatMgr
|
||||
return instance;
|
||||
}
|
||||
|
||||
EventEmitter<void(Player*, uint16)> OnReport;
|
||||
|
||||
void StartHackDetection(Player* player, MovementInfo movementInfo, uint32 opcode);
|
||||
void SavePlayerData(Player* player);
|
||||
void SavePlayerDataDaily(Player* player);
|
||||
|
||||
Reference in New Issue
Block a user