mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-22 20:26:17 +01:00
Configurable Age Restrictions
Makes the age restrictions on jobs editable on the fly from a new config file.
This commit is contained in:
@@ -26,6 +26,10 @@ var/jobban_keylist[0] //to store the keys & ranks
|
||||
if(config.usewhitelist && !check_whitelist(M))
|
||||
return "Whitelisted Job"
|
||||
|
||||
if (config.use_age_restriction_for_jobs)
|
||||
if (config.age_restrictions[rank] && M.client.player_age < config.age_restrictions[rank])
|
||||
return "Age Restricted"
|
||||
|
||||
for (var/s in jobban_keylist)
|
||||
if( findtext(s,"[M.ckey] - [rank]") == 1 )
|
||||
var/startpos = findtext(s, "## ")+3
|
||||
|
||||
Reference in New Issue
Block a user