Detects and mitigates lag-switch and network desync abuse
Advanced network heuristic and desync mitigation engine for PocketMine-MP 5.
AntiBugPing implements real-time connection profiling to detect and mitigate lag-switch style abuse, artificial desynchronization, and erratic network behavior.
Designed for high-concurrency production environments, ensuring zero impact on the main server thread.
WeakMap for automated per-player state lifecycle management, entirely eliminating memory leaks and the need for manual garbage collection arrays.The system initializes with a balanced profile. Administrators must fine-tune resources/config.yml according to the infrastructure's routing topology.
| Parameter | Recommended Adjustment |
|---|---|
thresholds.high-ping-ms | Increase if the server infrastructure is heavily reliant on cross-continental routing. |
thresholds.high-jitter-ms | Increase if the primary player base utilizes cellular or highly volatile mobile connections. |
min-ping-samples | Increase to demand a larger statistical sample size prior to mitigation execution. |
thresholds.action-score-cooldown-ticks | Increase to dampen false-positive risk spikes during dense PvP interactions. |
watchdog.quarantine-after-silent-multiplier | Calibrate to govern the strictness of the silent-connection quarantine trigger. |
mitigation.kick-enabled | Keep set to false during initial deployment until network telemetry is validated. |
| Node | Description | Default Status |
|---|---|---|
antibugping.bypass | Grants absolute immunity to heuristic checks and mitigation penalties. | op |
antibugping.notify | Subscribes the user to real-time administrative telemetry and mitigation alerts. | op |
This repository provides a lightweight test harness designed to assert configuration parser invariants (AntiBugPingSettings::fromArray) and validate the heuristic scoring engine (DesyncDetector::onSuspiciousAction).
Execute the test suite via native CLI:
php tests/run.php