mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 14:36:46 +01:00
update tgs commands (#7511)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user