Simple Instructions: 4 Feature: Low TPS Restart - GeheimagentNr1/AutoRestart GitHub Wiki
Minecraft calculates all actions in a world 20 times per seconds. These calculations are called ticks. If a server is on heavy load, it can happen, that ticks are dropped and the server starts lagging. The Low TPS Restart feature restarts the server if the TPS are below a certain amount for a certain amount of time.
Do you want to enable or disable this feature?
Enable Low TPS Restart
To enable the Low TPS Restart feature, you have to set [low_tps_restart, enabled] to true. We want, that the server restarts, if the TPS a below 15 for 2 minutes.
In our example, the config would look like this:
#Options for restart, if the tps of server or its dimensions are low:
[low_tps_restart]
#Delay, that the server must be below the defined TPS level, in order for it to be restarted.
#Examples:
# - 5s - For a delay 5 seconds
# - 7m - For a delay 7 minutes
# - 2h - For a delay 2 hours
delay = "2m"
#TPS level below which the server is restarted, if it lasts for a specified time.
#Range: 0.0 ~ 20.0
minium_tps_level = 15.0
#Should the server restart, if it is below a tps level for a specified time?
enabled = true
Disable Low TPS Restart
To disable the Low TPS Restart feature, you only have to set [low_tps_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 tps of server or its dimensions are low:
[low_tps_restart]
#Delay, that the server must be below the defined TPS level, in order for it to be restarted.
#Examples:
# - 5s - For a delay 5 seconds
# - 7m - For a delay 7 minutes
# - 2h - For a delay 2 hours
delay = "1m"
#TPS level below which the server is restarted, if it lasts for a specified time.
#Range: 0.0 ~ 20.0
minium_tps_level = 0.0
#Should the server restart, if it is below a tps level for a specified time?
enabled = false
You have set up and configured the whole Auto Restart mod Have fun playing Minecraft!