mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
AFK Kicker should affect ghosts and people in the lobby
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
for(last_object in clients)
|
for(last_object in clients)
|
||||||
var/client/C = last_object
|
var/client/C = last_object
|
||||||
if(C.is_afk(config.kick_inactive MINUTES))
|
if(C.is_afk(config.kick_inactive MINUTES))
|
||||||
if(!istype(C.mob, /mob/observer/dead) && !istype(C.mob, /mob/new_player))
|
to_chat(C,"<span class='warning'>You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.</span>")
|
||||||
to_chat(C,"<span class='warning'>You have been inactive for more than [config.kick_inactive] minute\s and have been disconnected.</span>")
|
var/information
|
||||||
var/information
|
|
||||||
|
|
||||||
|
if(C.mob)
|
||||||
if(ishuman(C.mob))
|
if(ishuman(C.mob))
|
||||||
var/job
|
var/job
|
||||||
var/mob/living/carbon/human/H = C.mob
|
var/mob/living/carbon/human/H = C.mob
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
else if(issilicon(C.mob))
|
else if(issilicon(C.mob))
|
||||||
information = " while a silicon."
|
information = " while a silicon."
|
||||||
|
|
||||||
var/adminlinks
|
var/adminlinks
|
||||||
adminlinks = " (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[C.mob.x];Y=[C.mob.y];Z=[C.mob.z]'>JMP</a>|<A HREF='?_src_=holder;cryoplayer=\ref[C.mob]'>CRYO</a>)"
|
adminlinks = " (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[C.mob.x];Y=[C.mob.y];Z=[C.mob.z]'>JMP</a>|<A HREF='?_src_=holder;cryoplayer=\ref[C.mob]'>CRYO</a>)"
|
||||||
|
|
||||||
log_and_message_admins("being kicked for AFK[information][adminlinks]", C.mob)
|
log_and_message_admins("being kicked for AFK[information][adminlinks]", C.mob)
|
||||||
|
|
||||||
qdel(C)
|
qdel(C)
|
||||||
SCHECK
|
SCHECK
|
||||||
|
|||||||
Reference in New Issue
Block a user