For some reason it this isnt working, it doesnt notify if you have the rank already, it just takes the bitcoins. I may be missing something simple but please help
code_language.skript:
command /bcshop1 <player>:
permission: "bitcoin.admin"
trigger:
if player has permission "rank.vip":
send "&cYou already have this rank!"
else:
if argument 1 's inventory contains 120 sunflower:
remove 120 sunflower from argument 1
execute console command "/pex user %argument 1% group set vip"
broadcast "&e&l%argument 1% &r&ehas purchased the Vip Rank!"
else:
send "&cYou Need 120 Bitcoins for this purchase!"
command /bc shop:
trigger:
open chest with 6 rows named "&e&lBitcoin Marketplace" to player
format slot 20 of player with book named "&a&lVip Rank" with lore "&e120 &e&lBitcoins" to run "bcshop1 %player%"