TPS-Stopper: Auto-Restart Server on Low TPS for Minecraft

Understanding TPS and Why It Matters for Your Minecraft Server Every server administrator knows that lag can ruin the multiplayer experience. In Minecraft, server performance is measured in ticks per second, or TPS. A healthy server runs at a steady 20 TPS, meaning the game loop updates 20 times ...

Download TPSStopper for Minecraft 1.10

Original name: TPSStopper

Minecraft: 1.10

FileVersionLoaderSize
TPSStopper.jar1.10—6 КБDownload

Understanding TPS and Why It Matters for Your Minecraft Server

Every server administrator knows that lag can ruin the multiplayer experience. In Minecraft, server performance is measured in ticks per second, or TPS. A healthy server runs at a steady 20 TPS, meaning the game loop updates 20 times each second. When TPS drops, mobs move sluggishly, blocks take longer to break, and redstone contraptions stutter. Severe TPS loss often signals an overloaded CPU, a rogue chunk loader, or an inefficient plugin. Without intervention, the server can grind to a halt, frustrating players and potentially corrupting world data. This is where a lightweight, automated solution becomes invaluable.

What Is TPS-Stopper?

TPS-Stopper is a straightforward yet powerful Bukkit/Spigot plugin designed to protect your server from catastrophic lag. Its core function is elegantly simple: it continuously monitors the server’s TPS, and if the value falls below a configurable threshold, it executes a predefined command. By default, that command is stop, which gracefully shuts down the server. This intentional shutdown prevents data loss and gives your restart script a clean exit point. The plugin is not meant to fix lag at its source; instead, it acts as a safety net, ensuring that a frozen server doesn’t remain stuck in an unplayable state indefinitely.

How TPS-Stopper Works Under the Hood

Once installed, the plugin runs a lightweight monitoring task that samples TPS at regular intervals. You define the minimum acceptable TPS value in the configuration file. When the average TPS dips below that number for a specified duration, TPS-Stopper springs into action. It can kick all online players with a customizable message explaining the restart, broadcast a server-wide warning, and then issue the stop command. This sequence gives players a heads-up instead of abruptly disconnecting them. The plugin also includes a manual override, allowing admins to disable the TPS monitor on the fly without unloading the plugin entirely.

Key Features That Set TPS-Stopper Apart

  • Configurable TPS threshold: Choose exactly how low TPS must drop before triggering a shutdown.
  • Custom command execution: While the default is stop, you can run any console command, such as a warning message or a custom script.
  • Player notifications: Kick players with a clear reason and broadcast a restart alert to everyone still online.
  • Manual toggle: Disable the TPS monitor temporarily without removing the plugin, perfect for maintenance windows.
  • Lightweight footprint: The plugin adds virtually no overhead, as it only checks TPS periodically.
  • Simple configuration: A single YAML file controls all settings, making setup quick even for beginners.

Setting Up TPS-Stopper on Your Server

Installation follows the standard Bukkit plugin procedure. After placing the JAR file in your plugins folder and restarting the server, a default configuration file appears. Open config.yml and adjust the min-tps value—most admins set it between 15 and 18. You can also modify the kick message and the command to execute. If you manage a modded server and want to streamline plugin management, the foxygame.net launcher offers a convenient, flexible, and modern Minecraft launcher where you can download mods and plugins right from the menu, making it easier to keep everything organized alongside your server tools.

Automating Server Restarts with Batch and Shell Scripts

The real magic of TPS-Stopper emerges when paired with a restart loop. Because the plugin triggers a clean stop, your hosting environment can detect the exit and automatically relaunch the server. For Windows servers, a batch file like the one below keeps the server running indefinitely:

@echo off
:start
java -Xmx1024M -Xms1024M -jar server.jar nogui
goto start

On Linux or macOS, a simple shell script achieves the same result:

#!/bin/bash
while true; do
java -Xmx1024M -Xms1024M -jar server.jar nogui
done

Replace server.jar with your actual server JAR name. With this loop in place, whenever TPS-Stopper halts the server, the script immediately starts a fresh instance. Players experience only a brief interruption, and the server returns with a clean slate, free from the memory leak or overload that caused the lag spike.

Why Every Server Admin Should Consider TPS-Stopper

Lag-induced crashes often corrupt chunk data or player inventories because the server never gets a chance to save properly. A forced shutdown via TPS-Stopper ensures that all worlds are saved before the process ends. Moreover, the plugin eliminates the need for an admin to be online 24/7. If a massive lag spike hits at 3 a.m., the server restarts itself and is ready for the morning crowd. This peace of mind alone justifies the tiny resource cost. Additionally, the ability to customize the shutdown command opens creative possibilities—some admins trigger a backup script or send a Discord alert before stopping.

Fine-Tuning the Plugin for Your Community

Out of the box, TPS-Stopper works with sensible defaults, but every server is unique. Experiment with the TPS threshold over a few days of normal activity to find the sweet spot. Setting it too high causes unnecessary restarts; too low risks data loss before the plugin reacts. The kick message can be personalized to match your server’s tone, such as “The server is restarting to fix lag. We’ll be back in under a minute!” This small touch maintains player trust. Also, remember to inform your moderation team about the manual disable feature so they can pause monitoring during scheduled events.

Final Thoughts on Automated Lag Protection

TPS-Stopper doesn’t claim to be a comprehensive lag-fighting suite. It won’t optimize your timings or clear entities. What it does is fill a critical gap in server resilience. By coupling a simple TPS check with a clean shutdown and an automated restart loop, you transform a potential disaster into a minor hiccup. The plugin is free, open-source, and compatible with all major Bukkit forks. Whether you run a small survival world with friends or a bustling minigame network, adding this layer of protection keeps your community happy and your worlds intact. Take a few minutes to install and configure TPS-Stopper—it might just save your server during its next unexpected lag storm.