hello i am making a skript shop where you can exchange your very rare tokens (which have a custom name) for different items
command /shoplgrd:
trigger:
set {_item} to emerald named "&aLegendary Token"
if player's inventory contains {_item}:
remove 1 of {_item} from player's inventory
give 10 diamonds to player's inventory
this is my code, there is no error when i reload it it just doesnt give anything please help me
command /shoplgrd:
trigger:
set {_item} to emerald named "&aLegendary Token"
if player's inventory contains {_item}:
remove 1 of {_item} from player's inventory
give 10 diamonds to player's inventory
this is my code, there is no error when i reload it it just doesnt give anything please help me