code_language.skript:
on rightclick:
if name of held item of player is "<gold>1* Wheat":
if player is sneaking:
add (3 * the number of wheat in inventory named "<gold>1* Wheat") to player's account
remove (number of wheat in inventory named "<gold>1* Wheat") from player
send "<lime>You now have: <gold>%player's money%" to player
if player is not sneaking:
remove 1 of player's tool from player # removes item
add 3 to player's account
send "<lime>You now have: <gold>%player's money%" to player
I seem to be having issues with this, i'm assuming its because of the fact that it cant read names or i'm phrasing it wrong. I'm really new to skript. thanks for you're help