update tgs commands (#7511)

This commit is contained in:
Letter N
2026-01-26 10:52:19 -08:00
committed by GitHub
parent 7d004f3ff8
commit fed38ec2c8
5 changed files with 106 additions and 93 deletions
+3 -3
View File
@@ -111,12 +111,11 @@ SUBSYSTEM_DEF(ticker)
if(blackbox)
blackbox.save_all_data_to_sql()
send2irc("Server", "A round of [mode.name] just ended.")
if(CONFIG_GET(string/chat_roundend_notice_tag))
var/broadcastmessage = "The round has ended."
if(CONFIG_GET(string/chat_reboot_role))
broadcastmessage += "\n\n<@&[CONFIG_GET(string/chat_reboot_role)]>, the server will reboot shortly!"
send2chat(broadcastmessage, CONFIG_GET(string/chat_roundend_notice_tag))
send2chat(new /datum/tgs_message_content(broadcastmessage), CONFIG_GET(string/chat_roundend_notice_tag))
SSdbcore.SetRoundEnd()
SSpersistence.SavePersistence()
@@ -125,7 +124,7 @@ SUBSYSTEM_DEF(ticker)
/datum/controller/subsystem/ticker/proc/on_mc_init_finish()
send2irc("Server lobby is loaded and open at byond://[config_legacy.serverurl ? config_legacy.serverurl : (config_legacy.server ? config_legacy.server : "[world.address]:[world.port]")]")
send2chat(new /datum/tgs_message_content("Server lobby is loaded and open at byond://[config_legacy.serverurl ? config_legacy.serverurl : (config_legacy.server ? config_legacy.server : "[world.address]:[world.port]")]"))
to_chat(world, "<span class='boldnotice'>Welcome to the pregame lobby!</span>")
to_chat(world, "Please set up your character and select ready. The round will start in [CONFIG_GET(number/lobby_countdown)] seconds.")
SEND_SOUND(world, sound('sound/misc/server-ready.ogg', volume = 100))
@@ -552,6 +551,7 @@ SUBSYSTEM_DEF(ticker)
to_chat(world, "<span class='infoplain'><BR><BR><BR><span class='big bold'>The round has ended.</span></span>")
log_game("The round has ended.")
send2adminchat("Server", "Round just ended.")
for(var/datum/callback/roundend_callbacks as anything in round_end_events)
roundend_callbacks.InvokeAsync()