Simple Instructions: 3 Feature: Empty Restart - GeheimagentNr1/AutoRestart GitHub Wiki

With the Empty Restart feature, the Minecraft server can be restarted, if the last player log out and no player comes online in a certain amount of time.

Do you want to enable or disable this feature?

Enable Empty Restart

To enable the Empty Restart feature, you have to set [on_empty_restart, enabled] to true. We want, that the server restarts, if the server stays 5 minutes (5m) empty after the last player logged out.

In our example, the config would look like this:

#Options for restart, if the server is empty:
[on_empty_restart]
	#Delay after the server should restart, if it is empty.
	#Examples:
	# - 5s - For a delay 5 seconds
	# - 7m - For a delay 7 minutes
	# - 2h - For a delay 2 hours
	delay = "5m"
	#Should the server restart, if no players are online?
	enabled = true

Disable Empty Restart

To disable the Empty Restart feature, you only have to set [on_empty_restart, enabled] to false. The other options don't have to change.
In our example, the config would look like this:

#Options for restart, if the server is empty:
[on_empty_restart]
	#Delay after the server should restart, if it is empty.
	#Examples:
	# - 5s - For a delay 5 seconds
	# - 7m - For a delay 7 minutes
	# - 2h - For a delay 2 hours
	delay = "10m"
	#Should the server restart, if no players are online?
	enabled = false

The last feature of the Auto Restart mod is to restart the server, if the TPS are low.
Low TPS Restart Feature