scoreboard players tag @e[name=AFKDetectionTimer,type=area_effect_cloud] add RunAFKDetection {Age:199}
function main:lobby/afk/afkdetection if @e[name=AFKDetectionTimer,type=area_effect_cloud,tag=RunAFKDetection]
function main:lobby/afk/afkinit if @a[score_AFKTimer_min=6,tag=!AFK]
function main:lobby/afk/afk if @a[tag=AFK]
function main:lobby/afk/afkcanceldetection if @a[tag=AFK]
function main:lobby/afk/afkcancel if @a[tag=AFKCancel]
function main:lobby/afk/afkreset if @a[tag=AFKReset]