Merge pull request #11735 from AffectedArc07/panic-bunker

Panic Bunker
This commit is contained in:
variableundefined
2019-08-12 19:34:19 +08:00
committed by GitHub
3 changed files with 37 additions and 3 deletions
+16 -2
View File
@@ -80,7 +80,8 @@ var/list/admin_verbs_admin = list(
/client/proc/list_afks,
/client/proc/cmd_admin_headset_message,
/client/proc/spawn_floor_cluwne,
/client/proc/show_discord_duplicates,
/client/proc/show_discord_duplicates, // This needs removing at some point, ingame discord linking got removed in #11359
/client/proc/toggle_panic_bunker
)
var/list/admin_verbs_ban = list(
/client/proc/unban_panel,
@@ -1027,4 +1028,17 @@ var/list/admin_verbs_ticket = list(
if(!check_rights(R_ADMIN))
return
holder.discord_duplicates()
holder.discord_duplicates()
/client/proc/toggle_panic_bunker()
set name = "Toggle Panic Bunker"
set category = "Admin"
set desc = "Disables new players connecting."
if(!check_rights(R_ADMIN))
return
GLOB.panic_bunker_enabled = !GLOB.panic_bunker_enabled
log_admin("[key_name(usr)] has [GLOB.panic_bunker_enabled ? "activated" : "deactivated"] the panic bunker.")
message_admins("[key_name_admin(usr)] has [GLOB.panic_bunker_enabled ? "activated" : "deactivated"] the panic bunker.")