Client BYOND account creation date tracking (#14733)

* Client BYOND account creation date tracking

* Mochi suggestion

* Tweaks
This commit is contained in:
AffectedArc07
2020-10-27 18:18:10 +00:00
committed by GitHub
parent 4d9e7cc60d
commit 8cd7748f64
5 changed files with 129 additions and 0 deletions

View File

@@ -250,6 +250,9 @@
// Makes gamemodes respect player limits
var/enable_gamemode_player_limit = 0
/// BYOND account age limit for notifcations of new accounts (Any accounts older than this value will not send notifications on first join)
var/byond_account_age_threshold = 7
/datum/configuration/New()
for(var/T in subtypesof(/datum/game_mode))
var/datum/game_mode/M = T
@@ -741,6 +744,8 @@
config.disable_localhost_admin = 1
if("enable_gamemode_player_limit")
config.enable_gamemode_player_limit = 1
if("byond_account_age_threshold")
config.byond_account_age_threshold = text2num(value)
else
log_config("Unknown setting in configuration: '[name]'")