mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-24 21:26:38 +01:00
you ahelp for vpn now
because some people apparently need em
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
|
||||
log_admin("[key_name(usr)] has toggled the Discord Bunker, it is now [new_dbun ? "on" : "off"]")
|
||||
message_admins("[key_name_admin(usr)] has toggled the Discord Bunker, it is now [new_dbun ? "enabled" : "disabled"].")
|
||||
SSblackbox.record_feedback("nested tally", "discord_toggle", 1, list("Toggle Panic Bunker", "[new_dbun ? "Enabled" : "Disabled"]"))
|
||||
send2adminchat("Discord Bunker", "[key_name(usr)] has toggled the Panic Bunker, it is now [new_dbun ? "enabled" : "disabled"].")
|
||||
SSblackbox.record_feedback("nested tally", "discord_toggle", 1, list("Toggle Discord Bunker", "[new_dbun ? "Enabled" : "Disabled"]"))
|
||||
send2adminchat("Discord Bunker", "[key_name(usr)] has toggled the Discord Bunker, it is now [new_dbun ? "enabled" : "disabled"].")
|
||||
|
||||
/client/proc/adddiscordbypass(ckeytobypass as text) // In case someone's too lazy to verify on discord
|
||||
set category = "Special Verbs"
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/client/proc/vpnbunker()
|
||||
set category = "Server"
|
||||
set name = "Toggle VPN Blocker"
|
||||
|
||||
var/new_vpnbun = !CONFIG_GET(flag/kick_vpn)
|
||||
CONFIG_SET(flag/kick_vpn, new_vpnbun)
|
||||
|
||||
log_admin("[key_name(usr)] has toggled the VPN Blocker, it is now [new_vpnbun ? "on" : "off"]")
|
||||
message_admins("[key_name_admin(usr)] has toggled the VPN Blocker, it is now [new_vpnbun ? "enabled" : "disabled"].")
|
||||
SSblackbox.record_feedback("nested tally", "vpn_toggle", 1, list("Toggle VPN Blocker", "[new_vpnbun ? "Enabled" : "Disabled"]"))
|
||||
send2adminchat("VPN Blocker", "[key_name(usr)] has toggled the VPN Bunker, it is now [new_vpnbun ? "enabled" : "disabled"].")
|
||||
|
||||
/client/proc/addvpnbypass(ckeytobypass as text)
|
||||
set category = "Special Verbs"
|
||||
set name = "Add VPN Bypass"
|
||||
set desc = "Allows a given ckey to connect through the VPN Blocker."
|
||||
if(!CONFIG_GET(flag/kick_vpn))
|
||||
to_chat(usr, span_adminnotice("VPN Blocker is currently off!"))
|
||||
|
||||
var/datum/config_entry/multi_keyed_flag/vpn_bypass/bypasses = CONFIG_GET_ENTRY(multi_keyed_flag/vpn_bypass)
|
||||
bypasses.add_bypass(ckeytobypass)
|
||||
log_admin("[key_name(usr)] has added [ckeytobypass] to the current round's VPN bypass list.")
|
||||
message_admins("[key_name_admin(usr)] has added [ckeytobypass] to the current round's VPN bypass list.")
|
||||
send2adminchat("VPN Blocker", "[key_name(usr)] has added [ckeytobypass] to the current round's VPN bypass list.")
|
||||
|
||||
/client/proc/revokevpnbypass(ckeytobypass as text)
|
||||
set category = "Special Verbs"
|
||||
set name = "Revoke VPN Bypass"
|
||||
set desc = "Removes a ckey from the VPN Blocker bypass list."
|
||||
if(!CONFIG_GET(flag/kick_vpn))
|
||||
to_chat(usr, span_adminnotice("VPN Blocker is currently off!"))
|
||||
|
||||
var/datum/config_entry/multi_keyed_flag/vpn_bypass/bypasses = CONFIG_GET_ENTRY(multi_keyed_flag/vpn_bypass)
|
||||
bypasses.rev_bypass(ckeytobypass)
|
||||
log_admin("[key_name(usr)] has removed [ckeytobypass] from the current round's VPN bypass list.")
|
||||
message_admins("[key_name_admin(usr)] has removed [ckeytobypass] from the current round's VPN bypass list.")
|
||||
send2adminchat("VPN Blocker", "[key_name(usr)] has removed [ckeytobypass] from the current round's VPN bypass list.")
|
||||
Reference in New Issue
Block a user