FIXED
i fixed it myself, just had to remove the {}
Finished code if anyone wants it
command /items:
trigger:
if {%player%.random} = true:
set {%player%.random} to false
message "&7You have disabled random items" to player
else:
set {%player%.random} to true
message "&7You have enabled random items" to player
options:
Time : 1
every {@Time} seconds:
loop all players:
if {%loop-player%.random} = true:
give loop-player a random item of all items
wait 1 tick