mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-09-23 22:43:43 +00:00
feat: Add cheat detection knowledge (#2034)
* feat: Add cheat detection knowledge tested that getting kicked correctly displays the reasons why and their corresponding values tested that a user with developer permissions is not kicked for said funness tested that logs are correct for those funness values which i could actually trigger * fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <chrono>
|
||||
#include "RakNetTypes.h"
|
||||
#include "dCommonVars.h"
|
||||
#include "eFunnessTypes.h"
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
@@ -55,7 +56,7 @@ public:
|
||||
// Added for GameMessageHandler
|
||||
std::unordered_map<uint32_t, BehaviorParams> uiBehaviorHandles;
|
||||
|
||||
void UserOutOfSync();
|
||||
void UserOutOfSync(const CaughtFunness& funness);
|
||||
|
||||
private:
|
||||
uint32_t m_AccountID;
|
||||
@@ -75,6 +76,7 @@ private:
|
||||
const int m_MaxDesyncAllowed = 12;
|
||||
uint64_t m_MuteExpire;
|
||||
std::chrono::steady_clock::time_point m_LastMuteCheck{};
|
||||
std::vector<CaughtFunness> m_CaughtFunness{};
|
||||
};
|
||||
|
||||
#endif // USER_H
|
||||
|
||||
Reference in New Issue
Block a user