szutilpack/szutil_restart
Aaron Suen 09ca6f0c89 Allow certain players to be ignored for restarts 2022-04-19 19:34:09 -04:00
..
README Restarts are only silent if no announcement was made 2021-03-11 08:31:29 -05:00
init.lua Allow certain players to be ignored for restarts 2022-04-19 19:34:09 -04:00
mod.conf Import restart countdown mod 2021-03-06 10:02:26 -05:00

README

------------------------------------------------------------------------

This mod provides a way to gracefully shut down a server from external
triggers (i.e. scripts) with a graceful countdown to warn players.
A server restart is triggered by creating a file named "restart" inside
the world dir, or use of a chatcommand.

Note that this only manages shutting down the server from inside; your
script MUST provide the actual restarting capability after the server
exits, and MUST remove the "restart" file before starting the server to
prevent triggering a restart loop.

If no players are present, then the server will shut down immediately;
players can all leave the server to skip the countdown.  Silent restarts
are done quietly if no announcement was originally made, to avoid
creating noise in chat bridges.

------------------------------------------------------------------------