so I am trying to make it so everyone get the advent calendar tokens but I don't want the same person to get it twice but it can't understand "cancel event"
every 1 second:
loop all players:
if {given.advent%loop-player%} is false:
give loop-player green glazed terracotta of mending 1 named "&c&lDay 2"
set {given.advent%loop-player%} to true
if {given.advent%loop-player%} is true:
cancel the event
every 1 second:
loop all players:
if {given.advent%loop-player%} is false:
give loop-player green glazed terracotta of mending 1 named "&c&lDay 2"
set {given.advent%loop-player%} to true
if {given.advent%loop-player%} is true:
cancel the event