command /afkloc:
permission: op
trigger:
set {afk::loc} to player's location
message "Lokasyon ayarlandı."
command /afk:
trigger:
if {afk::%player%} isn't set:
set {afk::%player%} to true
teleport player to {afk::loc}
message "AFK moduna geçildi."
stop
delete {afk::%player%}
message "AFK modundan çıkıldı."
every 2 minute:
loop all players:
if {afk::%loop-player%} is set:
execute console command "Coin"