XeroAntiCheat v1.0.9 bug fixes

- BUG-1: Added alerts.cooldown_ms (default 5s) to throttle warn() and
  sendAlert() in PunishmentManager, preventing chat spam during high-frequency
  flags. Verbose output in ViolationManager also respects the cooldown.
  Kick/ban punishments always fire immediately regardless of cooldown.
- BUG-2: Fixed FlyCheck false positive with Jump Boost I - condition was
  incorrectly flagging players with Jump Boost level 1. Now exempts all
  jump boost levels from the sustained-flight flag.
- BUG-3: Optimized SpiderCheck by caching player.getLocation() in a single
  variable instead of calling it 3 times.
This commit is contained in:
2026-03-15 03:51:27 -03:00
parent 38ab1abaf1
commit 8190b39160
9 changed files with 50 additions and 18 deletions

View File

@@ -315,6 +315,11 @@ alerts:
# Staff-only alert format
staff_format: "<gray>[%time%] %message%"
# Minimum milliseconds between alert/warn messages for the same player+check.
# Prevents chat spam when a player is flagging at high frequency.
# Default: 5000ms (5 seconds). Set to 0 to disable throttling.
cooldown_ms: 5000
# ==========================================
# COMMANDS