Restarter: Auto Restart Plugin for Minecraft Servers

Understanding the Restarter Plugin Running a Minecraft server is an adventure filled with creativity, but it also comes with its fair share of technical hiccups. Over time, even the most stable servers can develop memory leaks, lag spikes, or simply accumulate too many idle players. That is where...

Download Restarter

Original name: Restarter

FileVersionLoaderSize
Restarter.jar——11 КБDownload

Understanding the Restarter Plugin

Running a Minecraft server is an adventure filled with creativity, but it also comes with its fair share of technical hiccups. Over time, even the most stable servers can develop memory leaks, lag spikes, or simply accumulate too many idle players. That is where the Restarter plugin steps in. It is a lightweight, no-nonsense solution that automatically schedules server restarts, giving your world a fresh start without you having to hover over the console 24/7.

How Automatic Restarts Improve Server Stability

Think of a scheduled restart as a digital power nap for your server. After hours of generating chunks, processing redstone contraptions, and handling dozens of player interactions, the Java Virtual Machine can become sluggish. Restarter acts as a quick fix for these stability problems. By rebooting the server at configurable intervals, it flushes out memory leaks, forces new plugins and configuration changes to take effect, and politely kicks those AFK players who have been standing in the spawn chunks for days. The result is a smoother experience for everyone, with fewer unexpected crashes and less manual intervention.

Installation and Setup

Getting Restarter up and running is refreshingly simple. First, grab the Restarter.jar file—no external links here, just search for it on your favorite plugin repository or build it from source if you prefer. Once you have the jar, drop it into your server's plugins/ directory. On the first run, the plugin will automatically generate a Restarter/config.yml file with sensible default values, so you can start tinkering right away.

A quick but crucial detail: Restarter only stops the server. It does not handle the startup process. To create a fully automated cycle, you need to pair it with a script that brings the server back online after it shuts down. Inside the plugin's examples/ directory, you will find sample scripts for various hosting environments. These scripts are your blueprint for a self-healing server that never stays offline for long.

For those who enjoy managing multiple modded profiles or testing different plugin setups, a modern launcher can be a real time-saver. The foxygame.net launcher lets you download mods and organize entire instances directly from its menu, making it a flexible companion for any server administrator who wants to experiment with new configurations without cluttering their main installation.

Configuring Restart Timing

Open the config.yml file, and you will find three core settings that give you precise control over the restart schedule:

  • minutesToRestart – The base interval in minutes between restarts. For example, setting this to 90 means the server will aim to reboot every hour and a half.
  • variance – A clever addition that prevents players from gaming the system. If you set a variance of 10, the actual restart time will fall anywhere between minutesToRestart - variance and minutesToRestart + variance. So with a base of 90 and a variance of 10, the server will restart at a random point between 80 and 100 minutes. Set variance to 0 for an exact, predictable schedule.
  • warn and warnMessage – The number of minutes before the restart when a warning message is broadcast to all players. The default is 1 minute, but you can adjust it to give your community more time to finish their builds or reach a safe spot.

Additionally, the kickMessage string is what players see when they are disconnected for the restart. Customize it with a friendly reminder or a bit of server lore—whatever fits your community's vibe.

Commands and Permissions

Restarter comes with two straightforward commands that give admins on-the-fly control without editing the config file:

  • /rsquery – Checks how much time remains until the next scheduled restart. Requires the restarter.query permission.
  • /rsset – Manually sets the countdown in minutes until the next restart. This value is not saved to the configuration file, so it is perfect for one-off adjustments. Passing zero or a negative number triggers an immediate restart. Requires the restarter.set permission.

These commands are ideal for moderators who notice lag creeping in ahead of schedule or for planning a quick maintenance window without digging through YAML files.

Automating the Restart Loop

The real magic happens when you combine Restarter with a startup script. Whether you are using a VPS, a dedicated machine, or a managed host that supports custom wrappers, the principle is the same: a simple bash or batch file that launches the server, waits for it to stop, and then loops back to start it again. The examples provided in the plugin's directory cover common scenarios, but you can adapt them to your specific setup. Once the loop is in place, your server becomes a self-sustaining ecosystem that heals itself on a regular schedule.

Conclusion

Restarter is a perfect example of a small plugin that solves a big problem. By automating the restart process, it keeps your server responsive, applies new configurations seamlessly, and politely clears out inactive players—all without you lifting a finger. The configuration is minimal yet flexible, and the permission system ensures that only trusted staff can alter the schedule. Pair it with a startup script, and you have a rock-solid foundation for any Minecraft community, from a cozy survival world to a bustling minigame hub. The source code is openly available on GitHub at AgentME/Restarter, so you can audit it or contribute to its development. Whether you are a seasoned admin or just starting out, giving your server a regular, automated refresh is one of the simplest ways to keep the blocky adventures running smoothly.