Aaron Suen 6f7892e232 Fix restart announcing
Announce pending restarts if one was pended at the time the
first player joins a game (possible if it's held off by the
minimum restart interval).
2022-01-06 07:14:17 -05:00
..
2022-01-06 07:14:17 -05:00
2021-03-06 10:02:26 -05:00

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

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.

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