I'm having a problem with this skript. The only tested part is the /pay command. The error is the "Can't compare {money::%uuid of player%} is with an integer"
#Stops the <none>
on join:
if {money::%uuid of player%} is not set:
set {money::%uuid of player%} to 0
#PLAYER CMDS
#Individual's balances
command /money <offline player>:
aliases: /bal, /balance
usage: &c&lERROR &8→ &f/money <player>
trigger:
if arg-1 is not set:
send "<#00f986>&lMONEY &8→ You have <#00f986>{money::%uuid of player%} Money."
else if arg-1 is set:
send "<#00f986>&lMONEY &8→ %arg-1% has <#00f986>{money::%uuid of arg-1%} Money."
#Top 10 players wit most money
command /moneytop:
aliases: /baltop, /balancetop
trigger:
#Withdraw money
command /withdraw <integer>:
trigger:
if {money::%uuid of player%} is >= arg-1:
remove arg-2 from {money::%uuid of player%}
give player 1 paper named "<#00f986>%arg-1% ᴍᴏɴᴇʏ" with lore "&8ᴄᴀꜱʜ%nl%&f%nl%&c&l| &cɪɴꜰᴏʀᴍᴀᴛɪᴏɴ:%nl%&c&l| &fᴡᴏʀᴛʜ: <#00f986>%arg-1%%nl%&c&l| &fꜱᴇʟʟᴡᴀɴᴅ ᴄᴏᴍᴘᴀᴛᴀʙʟᴇ: &c:x:%nl% %nl%&7ʀɪɢʜᴛ-ᴄʟɪᴄᴋ ᴛᴏ ʀᴇᴅᴇᴇᴍ"
send "<#00f986>&lMONEY &8→ &fYou made a banknote worth %arg-1%."
else if {money::%uuid of player%} is < arg-1:
send "<#00f986>&lMONEY &8→&cYou don't have enough money!"
#Give people your money
command /pay <offline player> <integer>:
usage: &c&lERROR &8→ &f/pay <player> <ammount>
trigger:
if {money::%uuid of player%} is >= arg-2:
remove arg-2 from {money::%uuid of player%}
add arg-2 to {money::%uuid of arg-1%}
send "<#00f986>&lMONEY &8→ &fSent <#00f986>%arg-2% &fto &c%arg-1%."
else if {money::%uuid of player%} is < arg-2:
send "<#00f986>&lMONEY &8→&cYou don't have enough money!"
#STAFF CMDS```