mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
CheatDetection: Move player access (#1209)
This commit is contained in:
parent
a8820c14f2
commit
258ee5c1ee
@ -55,17 +55,18 @@ void LogAndSaveFailedAntiCheatCheck(const LWOOBJID& id, const SystemAddress& sys
|
|||||||
player->GetCharacter()->GetName().c_str(), player->GetObjectID(),
|
player->GetCharacter()->GetName().c_str(), player->GetObjectID(),
|
||||||
sysAddr.ToString(),
|
sysAddr.ToString(),
|
||||||
entity->GetCharacter()->GetName().c_str(), entity->GetObjectID());
|
entity->GetCharacter()->GetName().c_str(), entity->GetObjectID());
|
||||||
|
toReport = player->GetParentUser();
|
||||||
// In the case that the target entity id did not exist, just log the player info.
|
// In the case that the target entity id did not exist, just log the player info.
|
||||||
} else if (player) {
|
} else if (player) {
|
||||||
Game::logger->Log("CheatDetection", "Player (%s) (%llu) at system address (%s) with sending player (%llu) does not match their own.",
|
Game::logger->Log("CheatDetection", "Player (%s) (%llu) at system address (%s) with sending player (%llu) does not match their own.",
|
||||||
player->GetCharacter()->GetName().c_str(), player->GetObjectID(),
|
player->GetCharacter()->GetName().c_str(), player->GetObjectID(),
|
||||||
sysAddr.ToString(), id);
|
sysAddr.ToString(), id);
|
||||||
|
toReport = player->GetParentUser();
|
||||||
// In the rare case that the player does not exist, just log the system address and who the target id was.
|
// In the rare case that the player does not exist, just log the system address and who the target id was.
|
||||||
} else {
|
} else {
|
||||||
Game::logger->Log("CheatDetection", "Player at system address (%s) with sending player (%llu) does not match their own.",
|
Game::logger->Log("CheatDetection", "Player at system address (%s) with sending player (%llu) does not match their own.",
|
||||||
sysAddr.ToString(), id);
|
sysAddr.ToString(), id);
|
||||||
}
|
}
|
||||||
toReport = player->GetParentUser();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CheckType::User: {
|
case CheckType::User: {
|
||||||
|
Loading…
Reference in New Issue
Block a user