Adds announcement of server restart to clients (#10412)

This commit is contained in:
Jiří Barouš
2020-11-22 16:49:02 +01:00
committed by GitHub
parent 317f98a8f9
commit 34bd3d8883
2 changed files with 7 additions and 0 deletions

View File

@@ -220,6 +220,9 @@ var/list/world_api_rate_limit = list()
SSpersist_config.save_to_file("data/persistent_config.json")
Master.Shutdown()
to_chat_immediate(world, "<br><span class='danger'>The server is restarting.</span><br>You should automatically reconnect in a minute or so...<br><hr><br>")
sleep(1) // this gives clients time to receive the message
if(config.server) //if you set a server location in config.txt, it sends you there instead of trying to reconnect to the same world address. -- NeoFite
for(var/client/C in clients)
C << link("byond://[config.server]")