⭐ hAntiLagMachines ⭐ [1.16.X-26.X] | WG, WE, and more support!
SpigotMCTargeted lag-machine protection with modular detection, automatic cleanup, quarantine, logs and etc
135 téléchargements 5.0 note
dernière vv1.5 SpigotMC
hAntiLagMachines
Targeted lag-machine protection for Minecraft servers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
hAntiLagMachines is a targeted lag-machine protection plugin for Minecraft servers.
Targeted lag-machine protection for Minecraft servers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Instead of working as a generic cleaner, the plugin focuses on specific dangerous construction patterns that can overload a server: dense redstone grids, gravity block traps, minecart rail clusters, piston machines with armor stands, large slime or honey piston walls, and sculk sensor activity zones.
The plugin detects suspicious structures, temporarily quarantines dangerous areas, removes selected blocks or entities when needed, writes detailed logs, and places protected signs with a detection ID.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Features
- Modular lag-machine detection
- Automatic cleanup of dangerous structures
- Temporary quarantine for active areas
- Detailed logs with coordinates and nearby players
- Protected sign placement after cleanup
- Configurable materials
- Configurable scan radius and thresholds
- Cleanup cooldowns to avoid repeated heavy work
- Expiring internal caches
- Version-safe sculk sensor support
- No external dependencies
- No commands required
────────────────────────────────────────
Protection Modules
Redstone grid protection
Detects dense redstone grids made from redstone wire, repeaters and comparators.
The module can react to suspicious redstone construction, active redstone event spam, dense multi-layer redstone structures and high repeater or comparator density.
When a dangerous redstone grid is detected, the plugin can cancel the placement, quarantine the affected region, remove redstone parts and write a detailed log entry.
Gravity and cobweb protection
Detects gravity-block and cobweb lag machines.
The module checks patterns involving sand, red sand, gravel, concrete powder, cobwebs and FallingBlock entity bursts.
It can react both when a support block is broken and when many falling blocks are spawned in a short time. Cleanup can remove gravity blocks, cobwebs and nearby falling block entities.
Minecart and rail protection
Detects dense minecart and rail lag machines.
The module checks minecart placement, vehicle creation, active vehicle update spam, rail clusters near minecarts and high minecart density.
When the configured pattern is detected, the plugin can quarantine the region, remove minecarts, remove rails and log the action.
Piston and armor stand protection
Detects piston machines that use armor stands.
The module watches armor stand spawning, piston machine construction, piston extension, piston retraction and frequent piston activity near armor stands.
Cleanup can remove armor stands and machine parts such as pistons, observers, redstone blocks, piston heads and moving pistons.
Slime and honey wall protection
Detects large slime or honey piston walls.
The module checks structures made from slime blocks, honey blocks, pistons, sticky pistons, observers, redstone blocks, piston heads and moving pistons.
It can detect dangerous patterns during construction, piston movement and repeated active movement.
Sculk sensor protection
Detects sculk sensor lag-machine zones on versions where sculk sensor materials are available.
The module can watch sculk sensor construction, redstone activity from sensors, physics activity near sensors and repeated activity in remembered sensor regions.
Sculk sensor zones are quarantined first. After repeated quarantine strikes, the plugin can remove sculk sensors from the configured cleanup radius.
On older server versions where sculk sensor materials are not available, this module is automatically unavailable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Logging System
hAntiLagMachines writes detailed logs to a configurable log file.
Default log file:
Code (Text):
plugins/hAntiLagMachines/logs.txt
- Detection ID
- Detection type
- World name
- Coordinates
- Nearby players
- Removed block count
- Removed entity count
- Pattern details
- Quarantine status
- Sculk sensor strike count
Code (Text):
plugins/hAntiLagMachines/logs.yml
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Protected Signs
After a cleanup, the plugin can place a protected sign near the detected location.
The sign can display:
- Plugin name
- Protection message
- Date
- Log ID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Configuration
The plugin creates three main configuration files:
Code (Text):
plugins/hAntiLagMachines/config.yml
plugins/hAntiLagMachines/materials.yml
plugins/hAntiLagMachines/logs.yml
plugins/hAntiLagMachines/materials.yml
plugins/hAntiLagMachines/logs.yml
materials.yml controls which materials are counted as redstone parts, gravity blocks, rails, minecart items, piston parts, sticky blocks and sculk sensor blocks.
logs.yml controls log messages, sign text, titles, reasons and detail formats.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Commands
This plugin does not register player commands.
Protection works automatically through event listeners and configuration files.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Permissions
Code (Text):
hantilagmachines.admin - Allows breaking protected hAntiLagMachines signs
The permission string can also be changed in the configuration:
Code (Text):
settings:
permissions:
admin: "hantilagmachines.admin"
permissions:
admin: "hantilagmachines.admin"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Requirements
- Java 17 or newer
- Spigot, Paper or Purpur 1.16 or newer
- No external dependencies
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Installation
- Place hAntiLagMachines.jar into the server's plugins folder.
- Restart the server.
- Open plugins/hAntiLagMachines/.
- Configure enabled modules and thresholds in config.yml.
- Configure checked materials in materials.yml if needed.
- Configure log and sign text in logs.yml if needed.
- Give staff the admin permission if they should be able to remove protected signs.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use Cases
- Survival servers with free building
- Anarchy or semi-anarchy servers
- Servers with redstone enabled
- Technical survival servers
- Public servers with grief protection
- Servers where lag machines are a common problem
- Projects that need automatic logging for staff review
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Notes
The plugin removes blocks and entities when a configured pattern is detected. Before using it on a live server, review the default thresholds and test the plugin with your own gameplay rules.
For strict servers, lower the thresholds.
For technical survival servers, increase the thresholds to avoid blocking legitimate farms or complex redstone builds.
Commentaires 0
Aucun commentaire pour l'instant. Sois le premier à donner ton avis.