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

This commit is contained in:
Mothblocks
2021-10-01 04:00:32 +03:00
committed by GitHub
parent 8286299a80
commit f158357375
3 changed files with 22 additions and 1 deletions
+11
View File
@@ -39,3 +39,14 @@
return FALSE
return is_admin(preferences.parent)
/datum/preference/toggle/bypass_deadmin_in_centcom
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
savefile_key = "bypass_deadmin_in_centcom"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/bypass_deadmin_in_centcom/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return is_admin(preferences.parent)