* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
23 lines
640 B
Plaintext
23 lines
640 B
Plaintext
SUBSYSTEM_DEF(server_maint)
|
|
name = "Server Tasks"
|
|
wait = 6000
|
|
flags = SS_NO_TICK_CHECK
|
|
|
|
/datum/controller/subsystem/server_maint/Initialize(timeofday)
|
|
if (config.hub)
|
|
world.visibility = 1
|
|
..()
|
|
|
|
/datum/controller/subsystem/server_maint/fire()
|
|
//handle kicking inactive players
|
|
if(config.kick_inactive > 0)
|
|
for(var/client/C in GLOB.clients)
|
|
if(C.is_afk(INACTIVITY_KICK))
|
|
if(!istype(C.mob, /mob/dead))
|
|
log_access("AFK: [key_name(C)]")
|
|
to_chat(C, "<span class='danger'>You have been inactive for more than 10 minutes and have been disconnected.</span>")
|
|
qdel(C)
|
|
|
|
if(config.sql_enabled)
|
|
sql_poll_population()
|