Code:
on inventory click:
if inventory name of player's current inventory is "Smith Trading":
send "tes"
set name of clicked item to {_player}
loop all items in player's current inventory:
add loop-item to {inv::*}
open chest with 1 rows named "Smith Trading Successful" to {_player}
set {inv::*} to all items in {_player}'s current inventory
if {_player} has permission "smith.access":
delete {receipt.%{_player}%.%player%}
else:
set {receipt.%player%.%{_player}%} to true
close player's inventory
i set the item to a player name
so when i click the item
"set name of clicked item to {_player}"
so i set the player name to the variable
open chest with 1 rows named "Smith Trading Successful" to {_player}
basically im trying to open a chest to the {_player} name i just set