Solved Skript shop gui not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GlacialDew

Member
Apr 8, 2018
40
3
8
Norrland
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 :emoji_slight_smile:


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%"
 
After line 5 try put stop, see if that works
[doublepost=1523221760,1523221586][/doublepost]if that doesn't work... try change your else to "if player does not have permission..."
[doublepost=1523221816][/doublepost]OH OH OH, i think i solved why its not working, haha DUR....
If player has permission.... change that to if arg-1 has permission
 
After line 5 try put stop, see if that works
[doublepost=1523221760,1523221586][/doublepost]if that doesn't work... try change your else to "if player does not have permission..."
[doublepost=1523221816][/doublepost]OH OH OH, i think i solved why its not working, haha DUR....
If player has permission.... change that to if arg-1 has permission
Thanks that fixed it xD
 
Status
Not open for further replies.