Auto Restart
Version Compatibility

The mod only works with Minecraft versions for which it has been officially released. This is an exclusively server-side solution - it does not function on the client side.
Main Features
This mod automates the Minecraft server restart process, offering several activation options:
- Scheduled Restarts - configuration of regular reboots at specified times
- Restart on Empty Server - automatic restart when the server is empty with configurable delay
- Restart on Low TPS - activation when server performance drops below a set level for a specified duration
- Emergency Restart - automatic recovery after crashes
Configuration Setup
The configuration file is located in the "serverconfig" folder within the world directory and is named "auto_restart-server.toml". Main parameters:
Basic Restart Settings
- use_external_restart_script - use of external restart script
- restart_command - command to restart the server (active only when external script is disabled)
Automatic Restart
- enabled - enable automatic restarts
- times - restart time in 24-hour format (e.g.: "14:00", "16:32")
- on_crash - restart on crash
- warning_times - warnings before upcoming restart (5s, 7m, 2h)
Restart on Empty Server
- enabled - activate function
- delay - delay before restart (5s, 7m, 2h)
Restart on Low TPS
- enabled - enable performance monitoring
- minium_tps_level - minimum acceptable TPS level
- delay - duration TPS must remain low
Commands
- /restart - immediate server restart
Installation and Setup
Shell scripts (for Linux) or batch files (for Windows) are required for the mod to function. This solution is Forge-only and will not be ported to Fabric.
Logo author: Muse31. The mod can be freely used in non-commercial modpacks.