TNTGuardian – Protect Your Server from TNT Lag icon

TNTGuardian – Protect Your Server from TNT Lag -----

Monitor, limit, and log TNT explosions — keep your TPS safe and stable!



[​IMG]
TNTLimiter
Smart TNT explosion limiter with logging, TPS optimization & cleanup system!

Description

TNTLimiter is a lightweight and efficient plugin that prevents lag caused by mass TNT explosions or redstone chain reactions.
It limits TNT explosions per tick, removes nearby primed TNT when limits are reached, logs all explosion events (with player names & coordinates), and dynamically adjusts based on server TPS.

Perfect for factions, anarchy, creative, and survival servers that need explosion control without killing performance.


⚙️ Features
  • Explosion limiter – configurable TNT limit per tick (global / region-aware).
  • Auto cleanup – removes nearby primed TNT entities when limit is hit (configurable radius).
  • Dynamic TPS scaling – automatically reduces explosion allowance when TPS drops.
  • TNTLogger – logs player name, world, and explosion coordinates to a text file with rotation.
  • Optional console alerts when explosions are blocked.
  • Admin commands for on-the-fly configuration and region management.
  • Lightweight, async-safe, and Paper/Spigot friendly.


Configuration (example)

Code (YAML):

# TNTLimiter config.yml

# Maximum TNT explosions allowed per tick (global)
explosion-limit
: 150

# Radius (in blocks) to remove nearby TNT entities when an explosion is blocked
cleanup-radius
: 6

# Enable or disable TNT event logging
tnt-log
:
  enabled
: true
  file
: "tnt_log.txt"
  max-size-mb
: 10

# TPS threshold - below this the plugin reduces explosions dynamically
pro
:
  tps-threshold
: 18.0
  tps-reduction-factor
: 0.5

# Console alerts when limits are triggered
console-alerts
: true
 

TNTLogger Output Example

Code (Text):

[2025-10-10 15:22:17] Player: Steve | World: world | X: 142 | Y: 65 | Z: -311
[2025-10-10 15:22:18] Player: Alex | World: world_nether | X: 91 | Y: 72 | Z: 201
[2025-10-10 15:22:19] Player: Unknown (non-player TNT) | World: world | X: -25 | Y: 63 | Z: 44
 

Commands & Usage

Code (Text):

Usage: /tntlimiter <reload|togglelog|addregion|removeregion|listregions|setlimit|setglobal>
 
  • /tntlimiter reload
    Reloads the configuration file (reloads config.yml without restarting the server).
  • /tntlimiter togglelog
    Toggles TNT event logging on/off (updates config setting `tnt-log.enabled`).
  • /tntlimiter addregion <name> <x1> <y1> <z1> <x2> <y2> <z2> [limit]
    Adds a cuboid region (use in-game). Optional per-region limit overrides the global `explosion-limit`.
  • /tntlimiter removeregion <name>
    Removes a previously defined region.
  • /tntlimiter listregions
    Lists all configured regions and their per-region limits.
  • /tntlimiter setlimit <region> <limit>
    Sets the per-tick TNT limit for the specified region.
  • /tntlimiter setglobal <limit>
    Sets the global per-tick TNT explosion limit (updates config `explosion-limit`).
upload_2025-10-10_16-47-38.png

Easy to use command GUI LIST of TNT USED!

/tntlimitergui -
can u check all of list used tnt!

Code (Text):

Permissions:
tntlimiter.admin  - Full access to all /tntlimiter subcommands
 

⚠️ Console Alerts Example
Code (Text):

[TNTLimiter] ⚠ Explosion limit reached in world (TPS: 16.8) - explosion cancelled and nearby TNT cleaned.
 


Performance & Compatibility
  • Monitors TPS and reacts automatically (Paper reflection fallback to tick-measuring if needed).
  • Minimal overhead, async logging, safe for large-scale detonations.
  • Compatible with Paper/Spigot 1.17 – 1.21+ and Java 17+.


Support
If you find bugs or have feature requests, open an issue or message me on Discord. I’ll respond and help integrate it on your server.


✅ Stop lag. Keep control. Make explosions smart again.
→ Download TNTLimiter now and protect your world from chaos! ←


Support


[​IMG]


CLICK HERE

Resource Information
Author:
----------
Total Downloads: 1
First Release: Oct 23, 2025
Last Update: Nov 5, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings