I need help with my skript I am trying to make a skript that gives players a token every 3 minutes if they do /afk but it's giving everyone the tokens and I can't figure out why
This Is The Skript:
command /afk:
trigger:
send "&2You Are Now Afk" to player
set {afk::%player%} to true
if {afk::%player%} is true:
set {afk::%player%} to false
if {afk::%player%} is false:
set {afk::%player%} to true
every 3 minutes:
if {afk::%player%} is true:
give loop-player red dye named "&4Afk&5Token"
On player move:
if {afk::%player%} is true:
set {afk::%player%} to false
on chat:
if {afk::%player%} is true:
set {afk::%player%} to false
This Is The Skript:
command /afk:
trigger:
send "&2You Are Now Afk" to player
set {afk::%player%} to true
if {afk::%player%} is true:
set {afk::%player%} to false
if {afk::%player%} is false:
set {afk::%player%} to true
every 3 minutes:
if {afk::%player%} is true:
give loop-player red dye named "&4Afk&5Token"
On player move:
if {afk::%player%} is true:
set {afk::%player%} to false
on chat:
if {afk::%player%} is true:
set {afk::%player%} to false