6 Commits

Author SHA1 Message Date
Aaron Suen
543f5cfd5f Announce empty server on restart if needed
When an MT server shuts down, it doesn't always kick the players
and announce their departure before the shutdown process runs,
so it's possible for players to be "connected" at the time the
server actually stops running mod code.  This means that there is
no opportunity to announce that the server is now empty once it's
actually shut down.

Here we assume that in most cases, the server will be brought
back up immediately, and better late than never.  If there were any
players online at the time the server was shut down, announce the
server status (i.e. that it's now empty) upon the next startup.

This should mitigate the issue where a a player joins the server,
then the server is shutdown silently, and then the same player
joins again, making chat logs nonsensical.  At least this way
you will see that the player is no longer connected at some point
before they reconnect.
2024-08-20 07:46:38 -04:00
Aaron Suen
a8410a4d7a Configurable stealthing of online players 2022-10-06 22:47:37 -04:00
Aaron Suen
047bf8af25 Fix announcing wrong names
Delay announcement until next tick to ensure that
player list changes have been applied.
2020-04-16 01:25:47 -04:00
Aaron Suen
52caedfb1a De Morgan's law fail. 2020-03-19 11:04:29 -04:00
Aaron Suen
a7d5138a21 Make szutil_nowonline honor szutil_stealth. 2020-03-19 06:58:42 -04:00
Aaron Suen
c48da1d737 Mod to list cumulative online players periodically. 2020-03-19 06:51:03 -04:00