I'm making an economy skript for my friend's server, and I'm having trouble making cheques... I made it so you can make them but I can't figure out a way to redeem them. I can't figure out how to make skript read the lore of an item and set the lore as a variable... can anyone help me?
Here is my current code:
trigger:
set {_number} to arg-1
if {econ::%player's uuid%} > arg-1:
remove arg-1 from {econ::%player's uuid%}
give event-player 1 paper named "&aCheque" with lore "&2%arg-1%"
else:
send "&4You do not have sufficient funds to create this cheque! Your current balance is &e%{econ::%player's uuid%}%" to player
on right click:
if event-player's held item is paper named "&aCheque":
```