mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
[MIRROR] Add delay round end to the server tab [MDB IGNORE] (#15139)
* Add delay round end to the server tab * Fixing conflicts again! Co-authored-by: tattle <66640614+dragomagol@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
co-authored by
tattle
GoldenAlpharex
parent
9f9f34a88a
commit
f5c5bd556b
@@ -194,33 +194,11 @@
|
||||
return
|
||||
shuttle_console.admin_controlled = !shuttle_console.admin_controlled
|
||||
to_chat(usr, "[shuttle_console] was [shuttle_console.admin_controlled ? "locked" : "unlocked"].", confidential = TRUE)
|
||||
|
||||
else if(href_list["delay_round_end"])
|
||||
//SKYRAT EDIT CHANGE BEGIN
|
||||
/*
|
||||
if(!check_rights(R_SERVER))
|
||||
return
|
||||
*/
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
//SKYRAT EDIT END
|
||||
if(SSticker.delay_end)
|
||||
tgui_alert(usr, "The round end is already delayed. The reason for the current delay is: \"[SSticker.admin_delay_notice]\"", "Alert", list("Ok"))
|
||||
return
|
||||
// Permissions are checked in delay_round_end
|
||||
delay_round_end()
|
||||
|
||||
var/delay_reason = input(usr, "Enter a reason for delaying the round end", "Round Delay Reason") as null|text
|
||||
|
||||
if(isnull(delay_reason))
|
||||
return
|
||||
|
||||
if(SSticker.delay_end)
|
||||
tgui_alert(usr, "The round end is already delayed. The reason for the current delay is: \"[SSticker.admin_delay_notice]\"", "Alert", list("Ok"))
|
||||
return
|
||||
|
||||
SSticker.delay_end = TRUE
|
||||
SSticker.admin_delay_notice = delay_reason
|
||||
|
||||
log_admin("[key_name(usr)] delayed the round end for reason: [SSticker.admin_delay_notice]")
|
||||
message_admins("[key_name_admin(usr)] delayed the round end for reason: [SSticker.admin_delay_notice]")
|
||||
else if(href_list["undelay_round_end"])
|
||||
if(!check_rights(R_SERVER))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user