I can't get the restart to work, what am i doing wrong? You can use this mod in non-commercial modpacks without asking. auto_restart/restartĮcho 'If you want to stop the server completely, press STRG-C, \before the countdown is at 1!' "1" means the server that the server was stopped with the "/restart" command or an auto restart and should be restarted.Īfter the server was stopped for a restart, the script waits 5 seconds until it restarts the Minecraft server. "0" means the server was shutdown with the "/stop" command and should be stopped. The Auto Restart Mod writes "-1", "0" or "1" to the file. It will restart the server always, except in the "./auto_restart/restart" file is "0". The "restart_loop.sh" script has the logic in it, to restart or stop the server. It is used to start the "restart_loop.sh" script in a screen.īash -c 'cd screen -d -m -S java -jar forge-.jar' External Restart Scriptīash -c 'cd screen -d -m -S.
The first script is named "restart_start.sh". These scripts are for the use, if you have configured, that you are using an external restart script.
You can find Windows script examples on: Restart Command The script examples are Linux sh scripts. You can let the mod use the restart command to restart the server, or use an external restart script.
Restarts the server How to use the Restart Mod TPS level below which the server is restarted, if it lasts for the specified time.ĭelay, that the server must be below the defined TPS level, in order for it to be restarted. Should the server restart, if it is below a tps level for a specified time? Options for restart, if the tps of server or its dimensions are low: Should the server restart, if no players are online?ĭelay after the server should restart, if it is empty. Options for restart, if the server is empty:
2h - For a message 2 hours before a restart 7m - For a message 7 minutes before a restart 5s - For a message 5 seconds before a restart Times before an auto restart of the server, a restart warning should be shown. Times in 24-hour format on which the server will automatically restart. Only called if "use_external_restart_script" is false. Is the server started by an external restart script?Ĭommand that is executed on Server stopped to restart the server. The config file can be found in the "serverconfig" folder in the "world" folder and is named "auto_restart-server.toml". Restarting the server, if the tps are below a specified level for a specified time Server Config Restarting the server with a delay, if it is empty Restarting the server at specified times
Use my code agentto get 25% off your first month and enjoy playing with your friends!Įnd of Support: 1.14.X-1.15.X, 1.16.1-1.16.4 Features You need a server to play with friends? You don't know how to set up one? Just rent an already configured server!Ĭlick on the picture above, select a plan (with recommended at least 6 GB), The mod can only be used on server side and won't work on the client side. This mod restarts the Minecraft server by itself or with an external restart script.