Page 1 of 1

Auto Server Restart

Posted: November 3rd, 2019, 4:15 pm
by Mwthorn
This script automatically restarts the server at 5 AM local server time and warns players 1 hour before.
This is mainly just an example on how to make an event with Denizen.

Instructions:

Re: Auto Server Restart

Posted: November 4th, 2019, 5:07 am
by mcmonkey
This is very similar to a sample script in the guide: https://guide.denizenscript.com/guides/ ... th-denizen

With a notable difference that you included save instructions, which is actually considered erroneous to include. The server saves itself at shutdown time - saving Denizen/Citizens manually first is redundant, and "save-all" is actually potentially a problem on some servers (most servers have worlds configured to auto-save as-needed, rather than only all at once by command - some servers actually have worlds configured to not save, at which point save-all ignores that setting and breaks things).