Skip to content

Commit

Permalink
delay
Browse files Browse the repository at this point in the history
  • Loading branch information
BeagleGaming1 committed Sep 20, 2023
1 parent 28fb633 commit 876362c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/modules/admin/tabs/round_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 876362c

Please sign in to comment.