Simple Instructions: 1 Setup - GeheimagentNr1/AutoRestart GitHub Wiki

To use this mod, you need to use/install a Minecraft Forge or NeoForge server and add the jar file of this mod to the mods folder.
When you start the server for the first time, the world directory is created and in it is the serverconfig folder. In this directory, you can find the config file named auto_restart-server.toml.

Rented servers: If your server is started by a server panel (i.e. Pterodactyl, Multicraft) and you can't use own scripts, you don't need the following steps. Enable the restart on stop/crash option of your server panel, set use_external_restart_script to true in the config and continue with the Auto Restart Feature. Details: Troubleshooting

First thing to decide is in which Minecraft Version you want to use the mod:

If you have problems, check the Troubleshooting page.