mirror of
https://github.com/Sandstorm-Station/Sandstorm-Station-13.git
synced 2026-08-21 20:28:14 +01:00
Adds a command for admins to easily end the shift (calls shuttle) + misc stuff (#222)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/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 class='adminnotice'>[key_name_admin(usr)] ended the shift.</span>")
|
||||
return
|
||||
Reference in New Issue
Block a user