Hello, I am trying to make so when a player clicks a item on the gui he will receive a custom item. Here is my code. Can anyone tell me want I'm doing wrong?
code_language.skript:
command /14101:
permission: script.shop
permission message: &cYou do not have have access to this command.
description: Player Shop
trigger:
open chest with 3 rows named "&c&lPlayer Shop" to player
format slot 1 of player with diamond hoe:1 named "&cPlains" to close then run [make console execute "/give %player% diamond_hoe 1 0 {display:{Name:"Hat 1"},HideFlags:4,Unbreakable:1}"]