mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-24 16:53:46 +00:00
21 lines
631 B
Plaintext
21 lines
631 B
Plaintext
/client/proc/admin_end_shift()
|
|
set category = "Admin.Events"
|
|
set name = "End shift"
|
|
set desc = "Calls the shuttle as if a roundend vote passed."
|
|
|
|
if(EMERGENCY_AT_LEAST_DOCKED)
|
|
return
|
|
|
|
if(!check_rights(R_ADMIN))
|
|
return
|
|
|
|
var/confirm = alert(src, "End the shift?", "Confirm", "Yes", "No")
|
|
if(confirm != "Yes")
|
|
return
|
|
|
|
SSshuttle.autoEnd()
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "End Shift") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
|
log_admin("[key_name(usr)] ended the shift.")
|
|
message_admins(span_adminnotice("[key_name_admin(usr)] ended the shift."))
|
|
return
|