Auto Server Restart feature every X hours?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Vash

New Member
Jul 29, 2019
19
0
0
I am running a FTB Direwolf20 1.0.23 MC V1.6.4 server on Windows.
The server uses Cauldron, now does anyone know a method of making the server restart every X hours?

I looked into plugins and found one but it crashes the server so its a no go..
Any other methods you can suggest?
 

Kirameki

New Member
Jul 29, 2019
310
0
0
You may be able to use Windows Task Scheduler (Taskschd.msc from comand prompt). Set it up to run a batch file, you may be able to use command redirection to send commands to your Minecraft window (i.e. save-all, stop, etc.) to shut down cleanly, add a delay, and then call up a new server instance in a new window.

Edit: Redirection probably won't work between windows, been a while since I did any batch scripting. May just want to use task scheduler to start, run for x time before stopping, and just run that every time period you want it to restart.
 
Last edited: