mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Update by Lagius:
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
This commit is contained in:
@@ -9,8 +9,10 @@ var
|
||||
|
||||
/proc/jobban_isbanned(mob/M, rank)
|
||||
if(M)
|
||||
if (rank == "Captain" || rank == "AI" || rank == "Head of Personnel" || rank == "Head of Security" || rank == "Chief Engineer" || rank == "Research Director" || rank == "Warden" || rank == "Detective" || rank == "Chief Medical Officer")
|
||||
if(IsGuestKey(M.key)/* && config.guest_jobban*/)
|
||||
if (is_important_job(rank))
|
||||
if(config.guest_jobban && IsGuestKey(M.key))
|
||||
return 1
|
||||
if(config.usewhitelist && check_whitelist(M))
|
||||
return 1
|
||||
if (jobban_keylist.Find(text("[M.ckey] - [rank]")))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user