Auto Server Restart

Mwthorn

Helper
Staff member
Helper
Aug 6, 2016
46
0
6
28
Roskilde, Sjælland, Denmark
ggpvp.dk
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:
  • Download the script here: https://one.denizenscript.com/haste/59574
  • Place the script in your script folder.
  • Restart server or reload scripts
  • Done!
 

mcmonkey

Administrator
Staff member
Helper
This is very similar to a sample script in the guide: https://guide.denizenscript.com/guides/background/denizen-capability.html#what-can-a-normal-user-do-with-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).