From 876362c1b72ca56909cb61d7dde8a72e8a44e3f4 Mon Sep 17 00:00:00 2001 From: Beagle <56142455+BeagleGaming1@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:36:26 -0400 Subject: [PATCH] delay --- code/modules/admin/tabs/round_tab.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/tabs/round_tab.dm b/code/modules/admin/tabs/round_tab.dm index deb27e73f7dc..22ba96a2317a 100644 --- a/code/modules/admin/tabs/round_tab.dm +++ b/code/modules/admin/tabs/round_tab.dm @@ -148,7 +148,10 @@ if(!check_rights(R_SERVER)) return - if (SSticker.current_state != GAME_STATE_PREGAME) + if(SSticker.current_state != GAME_STATE_PREGAME) + if(SSticker.delay_end) + if(tgui_alert(usr, "Round end delay is already enabled, are you sure you want to disable it?", "Confirmation", list("Yes", "No"), 30 SECONDS) != "Yes") + return SSticker.delay_end = !SSticker.delay_end message_admins("[SPAN_NOTICE("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")]") for(var/client/C in GLOB.admins)