mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-12 16:48:37 +00:00
Update AnticheatScripts.cpp - correctly set hook lists
This commit is contained in:
@@ -38,7 +38,7 @@ Seconds lastIterationPlayer = GameTime::GetUptime() + 30s; //TODO: change 30 sec
|
||||
class AnticheatPlayerScript : public PlayerScript
|
||||
{
|
||||
public:
|
||||
AnticheatPlayerScript() : PlayerScript("AnticheatPlayerScript") { PLAYERHOOK_ON_LOGOUT, PLAYERHOOK_ON_LOGIN, PLAYERHOOK_ON_UPDATE }
|
||||
AnticheatPlayerScript() : PlayerScript("AnticheatPlayerScript", { PLAYERHOOK_ON_LOGOUT, PLAYERHOOK_ON_LOGIN, PLAYERHOOK_ON_UPDATE }) { }
|
||||
|
||||
void OnPlayerLogout(Player* player) override
|
||||
{
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
class AnticheatWorldScript : public WorldScript
|
||||
{
|
||||
public:
|
||||
AnticheatWorldScript() : WorldScript("AnticheatWorldScript") { WORLDHOOK_ON_UPDATE, WORLDHOOK_ON_AFTER_CONFIG_LOAD }
|
||||
AnticheatWorldScript() : WorldScript("AnticheatWorldScript", { WORLDHOOK_ON_UPDATE, WORLDHOOK_ON_AFTER_CONFIG_LOAD }) { }
|
||||
|
||||
void OnUpdate(uint32 /* diff */) override // unusued parameter
|
||||
{
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
class AnticheatMovementHandlerScript : public MovementHandlerScript
|
||||
{
|
||||
public:
|
||||
AnticheatMovementHandlerScript() : MovementHandlerScript("AnticheatMovementHandlerScript") { MOVEMENTHOOK_ON_PLAYER_MOVE }
|
||||
AnticheatMovementHandlerScript() : MovementHandlerScript("AnticheatMovementHandlerScript", { MOVEMENTHOOK_ON_PLAYER_MOVE }) { }
|
||||
|
||||
void OnPlayerMove(Player* player, MovementInfo mi, uint32 opcode) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user