mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-22 23:43:21 +00:00
Admins cat see if other admin has left the game. The game actually checks for configuration variable guest_jobban (still be turned on by default). Added white list for heads and some non-heads (as in guest jobbans). Add keys to file data/whitelist.txt and turn on the option USEWHITELIST in config.txt. Cyborgs were added to the list of important jobs (for guests jobbans and whitelist). git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1568 316c924e-a436-60f5-8080-3fe189b3f50e
16 lines
363 B
Plaintext
16 lines
363 B
Plaintext
var/list/whitelist
|
|
|
|
#define WHITELISTFILE "data/whitelist.txt"
|
|
/proc/load_whitelist()
|
|
var/text = file2text(WHITELISTFILE)
|
|
if (!text)
|
|
diary << "Failed to [WHITELISTFILE]\n"
|
|
else
|
|
whitelist = dd_text2list(text, "\n")
|
|
|
|
/proc/check_whitelist(mob/M /*, var/rank*/)
|
|
if(!whitelist)
|
|
return 0
|
|
return ("[M.ckey]" in whitelist)
|
|
|
|
#undef WHITELISTFILE |