SovaAntiLag

SovaAntiLag

Heuristic anti-lag against redstone lag machines — without breaking legit farms.

26 downloads

🦉 SovaAntiLag

Heuristic anti-lag for redstone lag machines — without breaking legitimate farms.

Most anti-lag plugins use hard limits (e.g. "max 8 hoppers per chunk") that punish honest players as much as griefers. SovaAntiLag takes a different approach: it measures how useful a chunk's activity actually is, and only intervenes when a chunk is clearly burning ticks for nothing — and even then it reacts softly and gradually.

How it works

Every chunk gets a Productivity Score:

P = U_redstone / (A_useful + 1)
  • U_redstone — redstone churn: piston/dispenser/dropper firings, redstone signal changes.
  • A_useful — real work: hopper item transfers, crop growth, block breaking, mob deaths.

A high score means lots of activity, no payoff → a likely lag machine. A productive farm has plenty of U_redstone and plenty of A_useful, so its score stays low and it is left alone.

The plugin only starts actively scanning when the server is genuinely struggling (MSPT > 40 ms by default). When the server is healthy, it stays out of the way.

Soft, staged response

  1. Throttle — suspicious chunk's redstone events are skipped with an 80% chance. The machine slows down instead of dying.
  2. Freeze — if MSPT still doesn't recover, redstone in that chunk is fully paused for 5 minutes.
  3. Recovery — once the server is healthy again, restrictions lift automatically.

Specialized modules

  • 🔁 Idle Loop Detector — empty dispensers/droppers fired in a tight loop get silenced until an item actually enters them.
  • 💡 Light Spam Limiter — redstone lamps flickering many times per second get locked ON briefly.
  • 🧍 Entity Physics Capping — huge stacks of entities (armor stands, etc.) in one block get their collision temporarily disabled.

Compatibility

  • Cores: Bukkit · Spigot · Paper · Purpur · Pufferfish. Folia supported (experimental).
  • Minecraft: 1.20.6 – 1.21.x (Java 21).

Commands & permissions

Command Description
/sal status Show MSPT, detected core, tracked chunks
/sal top List the most suspicious chunks
/sal reload Reload config and language

Permission: sovaantilag.admin (default: OP).

Languages

Ships with English (default), Русский, Deutsch, Español, Français, 简体中文, Português (BR), Українська. Set language: in config.yml, or edit any file in plugins/SovaAntiLag/lang/.

Configuration

Everything is tunable — thresholds, throttle chance, freeze duration, per-module toggles, and an optional Discord webhook for chunk alerts. See config.yml.


Open to issues and translation PRs. "Sova" (сова) means "owl" — the watchful kind.

No gallery available for this project.