From 9317149019b5792ffc3bb45d2ac99243fa0bac4b Mon Sep 17 00:00:00 2001 From: Erwin <44278151+ErwinsExpertise@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:06:36 -0700 Subject: [PATCH 1/2] Fix SetEnabled method to set enabled state correctly --- anticheat/anticheat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anticheat/anticheat.go b/anticheat/anticheat.go index 6d569ef7..2a0ff026 100644 --- a/anticheat/anticheat.go +++ b/anticheat/anticheat.go @@ -30,7 +30,7 @@ func New(db *sql.DB, dispatch chan func()) *AntiCheat { // SetEnabled enables or disables automatic banning. When disabled, violation // tracking calls are no-ops and no bans are issued automatically. func (ac *AntiCheat) SetEnabled(enabled bool) { - ac.enabled = true + ac.enabled = enabled } func (ac *AntiCheat) SetOnBan(fn func(accountID int32)) { From e5b3387b6fb8adbbc9e6ca4685cd8858f0af62c5 Mon Sep 17 00:00:00 2001 From: Erwin <44278151+ErwinsExpertise@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:09:52 -0700 Subject: [PATCH 2/2] Disable automatic banning by default Removed the default enabling of automatic banning in the anticheat system. --- anticheat/anticheat.go | 1 - 1 file changed, 1 deletion(-) diff --git a/anticheat/anticheat.go b/anticheat/anticheat.go index 2a0ff026..a31c99ef 100644 --- a/anticheat/anticheat.go +++ b/anticheat/anticheat.go @@ -23,7 +23,6 @@ func New(db *sql.DB, dispatch chan func()) *AntiCheat { db: db, dispatch: dispatch, } - ac.enabled = true return ac }