Minecraft servers, if left running constantly, will continually increase their RAM usage. Regularly restarting your server is incredibly important to avoid this, and the Scheduled Restart mod allows you to easily automate the process.
This mod is based on ruin9999's Simple Server Restart mod, with some general improvements.
How to use
In order to allow the mod to restart the server, the config setting startScriptPath must be set to the name of the server's startup script. To find the startup script, look for the file in your server directory that ends in .bat or .sh. If you do not put the name of the startup script in the config, the mod will likely be unable to restart the server.
The schedule of automatic restarts is fully configurable in the config file. By default, the server will restart at midnight every day, with a warning in chat 5 minutes in advance, and another 30 seconds in advance.