mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Allows admins to set messages when they delay the round end (#29064)
* initial * fixes * changes * move to SSticker * logging * msg changes * fix * Jordie changes * remove span * change if * fix * cyberboss review
This commit is contained in:
@@ -349,9 +349,15 @@
|
||||
if(!check_rights(R_SERVER))
|
||||
return
|
||||
|
||||
if(!SSticker.delay_end)
|
||||
SSticker.admin_delay_notice = input(usr, "Enter a reason for delaying the round end", "Round Delay Reason") as null|text
|
||||
if(!SSticker.admin_delay_notice)
|
||||
return
|
||||
SSticker.delay_end = !SSticker.delay_end
|
||||
log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
|
||||
message_admins("<span class='adminnotice'>[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].</span>")
|
||||
var/reason = SSticker.delay_end ? "for reason: [SSticker.admin_delay_notice]" : "."//laziness
|
||||
var/msg = "[SSticker.delay_end ? "delayed" : "undelayed"] the round end [reason]"
|
||||
log_admin("[key_name(usr)] [msg]")
|
||||
message_admins("[key_name_admin(usr)] [msg]")
|
||||
href_list["secrets"] = "check_antagonist"
|
||||
|
||||
else if(href_list["end_round"])
|
||||
|
||||
Reference in New Issue
Block a user