on join:
set {afk.oldu} to false
on any move:
wait 5 minutes
send ''Afk Kaldıgın Icin Isınlanıyorsun'' to player
set {afk.oldu} to true
execute player command ''/warp afk''
on move:
if {afk.oldu} is set
wait 2 seconds
set {afk.oldu} to false
execute player command ''/spawn''
on command:
if {afk.oldu} is set
cancel event
else:
uncancel event