So I am trying to make a shop and I have the players money stored in a variable and I want it to check if the player the variable is an integer is greater than a certain number. Here is my code:
command /shop:
trigger:
open "CHEST" with 1 rows named "&9Shop" to the player
create a gui slot 0 of player with leather_boots with name "&7[&9Jumpy Boots]" with lore "&aCost: &6150 coins" to run player command "/buy JumpyBoots" with permission "buy.admin"
command /buy [<text>]:
permission: "buy.admin"
trigger:
if arg-1 is "JumpyBoots":
if {coins::%uuid of player%} is an integer greater than "149":
equip the player with leather_boots with name "&7[&9Jumpy Boots&7]" with lore "&f&m&l--[-&7Jump Boost 1&f&m&l-]--"
else:
send "&cYou need &a150 coins &cto purchase this item!"
The only guess I had was to do: if {coins::%uuid of player%} is an integer greater than "149": , but like I expected it did not work. Please help, thanks!
command /shop:
trigger:
open "CHEST" with 1 rows named "&9Shop" to the player
create a gui slot 0 of player with leather_boots with name "&7[&9Jumpy Boots]" with lore "&aCost: &6150 coins" to run player command "/buy JumpyBoots" with permission "buy.admin"
command /buy [<text>]:
permission: "buy.admin"
trigger:
if arg-1 is "JumpyBoots":
if {coins::%uuid of player%} is an integer greater than "149":
equip the player with leather_boots with name "&7[&9Jumpy Boots&7]" with lore "&f&m&l--[-&7Jump Boost 1&f&m&l-]--"
else:
send "&cYou need &a150 coins &cto purchase this item!"
The only guess I had was to do: if {coins::%uuid of player%} is an integer greater than "149": , but like I expected it did not work. Please help, thanks!