jorgebyte / reachlimiter
An optimized scope violation validator for PocketMine-MP 5.
dev-main
2026-04-20 00:46 UTC
Requires
- php: ^8.2
- pocketmine/pocketmine-mp: ^5.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.10.0
This package is auto-updated.
Last update: 2026-04-22 02:15:35 UTC
README
An optimized, scalable, and highly accurate Reach violation validator for PocketMine-MP 5. Built for competitive and high-performance server environments.
Features
- Fail-Fast Reach Detection: Instantaneous damage discarding reducing CPU overhead via squared math.
- Smart Ping Profiling (Rolling Median Filter): Caches minor network histories to auto-prevent false positives during lag-spikes.
- Zero Memory Leaks: Powered by native PHP 8
WeakMapimplementation to fully prevent string-map garbage piling. - Clean Code Architecture: Full PSR-12 standard, strict types & static code analysis (PHPStan Level Max).
Configuration
Modify plugins/ReachLimiter/config.yml to fit your server's needs:
max-reach: Base competitive range before padding (Usually3.15).extra-buffer: Distance tolerance (Default:0.45).ping-buffer-per-100ms: Additional mathematical distance tolerance per 100ms of ping.
Permissions
reachlimiter.notify: Allows a staff member to receive violation alerts.reachlimiter.bypass: Allows a player to completely bypass distance checks.
Installation
- Drop the
ReachLimiter.pharinto your/plugins/folder. - Restart the server.
- Enjoy your competitive environment perfectly secured.
Open Source
This plugin is perfectly fitted for production logic. Developed by Jorgebyte. Licensed under GNU General Public License v3.0.