hAntiLagMachines is a targeted lag-machine protection plugin for Minecraft servers.
Instead of working as a generic anti-lag cleaner, the plugin focuses on specific dangerous construction patterns that are commonly used to overload servers: 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.
hAntiLagMachines is built around separate protection modules.
Each module has its own settings, scan radius, trigger thresholds, cleanup limits, cooldowns and quarantine rules. You can enable or disable modules independently and adjust the plugin to your server's gameplay style.
The plugin is designed for servers where players can build freely, but destructive lag-machine patterns must be detected and blocked automatically before they cause serious TPS drops.
Detects dense redstone grids made from redstone wire, repeaters and comparators.
The module can react to:
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.
Detects gravity-block and cobweb lag machines.
The module checks patterns involving:
It can react both when a support block is broken and when many falling blocks are spawned in a short time. The cleanup can remove gravity blocks, cobwebs and nearby falling block entities.
Detects dense minecart and rail lag machines.
The module checks:
When the configured pattern is detected, the plugin can quarantine the region, remove minecarts, remove rails and log the action.
Detects piston machines that use armor stands.
The module watches:
Cleanup can remove armor stands and machine parts such as pistons, observers, redstone blocks, piston heads and moving pistons.
Detects large slime or honey piston walls.
The module checks structures made from:
It can detect dangerous patterns during construction, piston movement and repeated active movement.
Detects sculk sensor lag-machine zones on versions where sculk sensor materials are available.
The module can watch:
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.
hAntiLagMachines writes detailed logs to a configurable log file.
By default, logs are stored in:
plugins/hAntiLagMachines/logs.txt
Log entries can include:
Log text and formatting are configurable in:
plugins/hAntiLagMachines/logs.yml
After a cleanup, the plugin can place a protected sign near the detected location.
The sign can display:
The sign is marked through persistent data and cannot be broken by regular players. Only players with the configured admin permission can break protected signs.
The plugin creates three main configuration files:
plugins/hAntiLagMachines/config.yml
plugins/hAntiLagMachines/materials.yml
plugins/hAntiLagMachines/logs.yml
config.yml controls modules, thresholds, scan radius, cleanup radius, cooldowns and quarantine settings.
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.
This plugin does not register player commands.
Protection works automatically through event listeners and configuration files.
| Permission | Description | Default |
|---|---|---|
hantilagmachines.admin | Allows breaking protected hAntiLagMachines signs | OP |
The permission string can also be changed in the configuration:
settings:
permissions:
admin: "hantilagmachines.admin"
| Requirement | Status |
|---|---|
| Java 17 or newer | Required |
| Spigot/Paper/Purpur 1.16 or newer | Required |
| External plugins | Not required |
Paper or Purpur is recommended for production servers.
hAntiLagMachines.jar into the server's plugins folder.plugins/hAntiLagMachines/
config.yml.materials.yml if needed.logs.yml if needed.hAntiLagMachines is useful for:
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.

Targeted lag-machine protection with modular detection, automatic cleanup, quarantine, logs, protected signs and fully configurable thresholds.