Auto Restarter

Auto Restarter is a small NeoForge mod for Minecraft 1.21.1 dedicated servers. It automatically restarts the server, sends warnings to players, and can also restart the server when TPS gets too low.
epicskydex | Auto Restarter
Create a server, get 25% off your first monthaffiliate logo
Create Server
affiliate banner image

🔄 Auto Restart & TPS Guard

A powerful, lightweight utility designed for dedicated servers to maintain peak performance. This mod ensures your server stays fresh by scheduling restarts and protecting against heavy lag spikes.

✔ Key Features

  • Scheduled Restarts: Set automatic restarts every X minutes to prevent memory leaks and long-term lag.

  • Smart TPS Monitoring: Automatically triggers a restart if the TPS (Ticks Per Second) drops below your defined threshold for too long.

  • Fully Customizable Announcements: Notify players before a restart occurs. You choose the timing and the exact messages.

  • Advanced Configuration: Every single aspect is now highly tweakable via config/auto_restart.properties.

  • Clean Shutdowns: The mod safely saves the world and kicks players before stopping to ensure zero data loss.

  • In-Game Commands: * /restart — Manually trigger the restart sequence (OP only).

    • /timeuntilrestart — Let players check how much time is left before the next scheduled reboot.

✔ How it Works

  1. Detection: The mod identifies a restart is needed (either via schedule or low TPS).

  2. Notification: It sends your custom warnings to all online players.

  3. Shutdown: The mod stops the server cleanly.

  4. Looping: Your run.bat or start.sh script detects the stop and immediately launches the server again.

✔ Example Restart Script (run.bat)

To use this mod, your startup script must be set to loop. Here is a perfect example:

 

Code-Snippet
 
@echo off
:loop
java -Xms10G -Xmx10G (your flags here) @libraries/net/neoforged/neoforge/21.1.199/win_args.txt %*

echo Server stopped. Restarting in 10 seconds...
timeout 10 >nul
goto loop

 

Note: Always run the server using this .bat/ .sh file, not by double-clicking the JAR directly.

✔ Configuration

The new version features an extremely flexible configuration system. You can find everything you need in: config/auto_restart.properties

You can customize:

  • Exact intervals for scheduled restarts.

  • Minimum TPS threshold and duration (how long TPS must stay low before reacting).

  • Multiple announcement intervals (e.g., 10m, 5m, 1m, 10s warnings).

  • All localized chat messages and colors. 

    ✔ Support & Origins

Auto Restarter Team

profile avatar
  • 7
    Followers
  • 25
    Projects
  • 542.2K
    Downloads

I mostly build mods to fix problems I run into myself. I share them here in case they help your modpacks and servers too. (we don't talk about SeedRay).

More from epicskydexView all

  • Actually A New Frontier project image

    Actually A New Frontier

    A custom BetterMC sandbox focusing on Create: Aeronautics integration and a revamped End using Nullscape & Unusual End.

    • 106
    • December 2, 2026
  • Forgestone SMP [ISKRA] project image

    Forgestone SMP [ISKRA]

    A living Aeronautics world powered by gears, rails, submarines, and player markets. No bloated recipe locks—just massive engineering, 1,600+ quests, proximity voice, and an active SMP waiting for you.

    • 1.9K
    • November 22, 2026
  • Forgestone Nord Theme project image

    Forgestone Nord Theme

    Client-side add-on that recolors the FTB Teams party and team screens (FTB Library's Nord theme) from cold blue-grey to warm walnut and brass. No gameplay changes.

    • 183
    • November 21, 2026
  • X-SHIELD (anti-cheat) project image

    X-SHIELD (anti-cheat)

    Modpack anti-cheat (requires client & server). Detects X-Ray packs, hack clients & cheat mods using deep structure analysis, hashes & API lookups. Includes an interactive Discord bot, server-side ore tracker, auto-bans & live alerts.

    • 21.3K
    • November 21, 2026
  • Actually A New Frontier project image

    Actually A New Frontier

    A custom BetterMC sandbox focusing on Create: Aeronautics integration and a revamped End using Nullscape & Unusual End.

    • 106
    • December 2, 2026
  • Forgestone SMP [ISKRA] project image

    Forgestone SMP [ISKRA]

    A living Aeronautics world powered by gears, rails, submarines, and player markets. No bloated recipe locks—just massive engineering, 1,600+ quests, proximity voice, and an active SMP waiting for you.

    • 1.9K
    • November 22, 2026
  • Forgestone Nord Theme project image

    Forgestone Nord Theme

    Client-side add-on that recolors the FTB Teams party and team screens (FTB Library's Nord theme) from cold blue-grey to warm walnut and brass. No gameplay changes.

    • 183
    • November 21, 2026
  • X-SHIELD (anti-cheat) project image

    X-SHIELD (anti-cheat)

    Modpack anti-cheat (requires client & server). Detects X-Ray packs, hack clients & cheat mods using deep structure analysis, hashes & API lookups. Includes an interactive Discord bot, server-side ore tracker, auto-bans & live alerts.

    • 21.3K
    • November 21, 2026