[MIRROR] Add preference to disable deadmin preferences in CentCom [MDB IGNORE] (#8515)

* Add preference to disable deadmin preferences in CentCom (#61751)

* Add preference to disable deadmin preferences in CentCom

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-01 04:03:48 +02:00
committed by GitHub
parent dc57d5edd9
commit 84d0c39b6b
3 changed files with 22 additions and 1 deletions

View File

@@ -304,6 +304,9 @@
D.deactivate() //after logs so the deadmined admin can see the message.
/datum/admins/proc/auto_deadmin()
if (owner.prefs.read_preference(/datum/preference/toggle/bypass_deadmin_in_centcom) && is_centcom_level(owner.mob.z))
return FALSE
to_chat(owner, span_interface("You are now a normal player."), confidential = TRUE)
var/old_owner = owner
deactivate()