forked from SPLURT-Station/S.P.L.U.R.T-Station-13
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a command for admins to easily end the shift (calls shuttle) + m…
…isc stuff (SPLURT-Station#222)
- Loading branch information
Showing
5 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters