1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Shop Gui Permission help!

Discussion in 'Skript' started by andreas10550, Feb 23, 2020.

Thread Status:
Not open for further replies.
  1. andreas10550

    andreas10550 Member

    Joined:
    Feb 23, 2020
    Messages:
    1
    Likes Received:
    0
    Hey. I need help for my skript to work. It is a gui where u can buy kits, but i can't seem to make it work.

    Can u guys help me??

    (I am new to skript, so please be gentle)
     

    Attached Files:

  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    I recommend using TuSKe GUIs, but I'll be gentle with you. I'll rewrite your code in TuSKe if you'd like! (please say you want it in TuSKe ive already rewrote it and it is 4x shorter and i spent a half hour rewriting it) Also, do you use LuckPerms, GroupManager or Pex?
    assuming you have pex:
    requires tuske
    Code (Text):
    1. command /kitbuy:
    2.     trigger:
    3.         wait 3 ticks
    4.         open virtual chest with 3 rows named "&3&lFantasi&d&lland" to player
    5.         format gui slot (numbers between 0 and 26) of player with cyan stained glass pane named "&3Fantasi&dland" to do nothing
    6.         format gui slot 11 of player with chest named "&8Normal Kits" with lore "&3You can buy normal kits here!" to run:
    7.             close player's inventory
    8.             open virtual chest with 3 rows named "&8Normal Kits" to player
    9.             format gui slot 0 of player with paper named "&9/kit Pyroman" with lore "&3Price: 5000 Coins" to run:
    10.                 if player's balance >= 5000:
    11.                     execute console command "pex user %player% add essentials.kits.pyroman"
    12.                     remove 5000 from player's balance
    13.                     send "&aYou bought the Pyroman kit!"
    14.                     close player's inventory
    15.                 else:
    16.                     send "&cYou do not have enough permission!"
    17.                     close player's inventory
    18.         format gui slot 15 of player with chest named "&dDonation Kits" with lore "&3You can buy donator kits here!" to run:
    19.             close player's inventory
    20.             open virtual chest with 3 rows named "&8Donation Kits" to player
    21.             format gui slot 0 of player with paper named "&9/kit Pyroman" with lore "&3Price: 5000 Coins" to do nothing
     
    • Informative Informative x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...