mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 10:32:08 +00:00
Adds announcement of server restart to clients (#10412)
This commit is contained in:
@@ -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]")
|
||||
|
||||
Reference in New Issue
Block a user