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.

Solved gui error

Discussion in 'Skript' started by FoxCraftGaming, Feb 15, 2021.

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

    Joined:
    Sep 23, 2020
    Messages:
    11
    Likes Received:
    0
    hey everyone, can someone help me with this skript cuz i dont get it to work with whatever i try
    Code (Text):
    1.  
    2. command /bwgui:
    3.     permission: sk.bwgui
    4.     permission message: &8&l(&c&l!&8&l)&7 &cUnknown&7 command, type &c/help&7 for help
    5.     trigger:
    6.         set {bwps} to number of players in world "bedwars" and "waterfall" and "lighthouse" and "acropolissolo"
    7.         set {bwpall} to number of players in world "bedwars" and "waterfall" and "lighthouse" and "acropolissolo" and "speedway" and "rooftop" and "acropolisdoubles"
    8.         open chest with 5 rows named "&5GalaxyCraft&8 » BedWars" to player
    9.         format gui slot 0 and 8 and 36 and 44 of player with white glass pane named "&8"
    10.         format gui slot 1 and 7 and 9 and 17 and 27 and 35 and 37 and 43 of player with purple glass pane named "&8"
    11.         format gui slot 21 of player with bed named "&7Fast join &bSolo BedWars" with lore "&8Playing: &7(&b%{bwps}%&7)", "&8", "&7Click to join"
    12.         format gui slot 23 of player with paper named "&7Join the &bBedWars&7 Lobby" with lore "&8Online: &7(&b%{bwpall}%&7)", "&8", "&7Click to join"
    13.  
    14. on inventory click:
    15.     inventory name of player's current inventory = "&5GalaxyCraft&8 » BedWars":
    16.         clicked slot is 21:
    17.             broadcast "test"
    18.  
    it wont give me any errors in chat or console, but the click events doesnt work at all, if i remove the line clicked slot is 21, i can click on an empty slot, and it wil broadcast, clicking on a slot with an item wont do anything...

    hope someone can help :emoji_grinning:
     
    #1 FoxCraftGaming, Feb 15, 2021
    Last edited: Feb 17, 2021
  2. Time4Games

    Time4Games Active Member

    Joined:
    Jul 25, 2020
    Messages:
    203
    Likes Received:
    4
    instead of using the on click event you can just do it using tuske
    Code (Text):
    1. format gui slot 21 of player with bed named "&7Fast join &bSolo BedWars" with lore "&8Playing: &7(&b%{bwps}%&7)", "&8", "&7Click to join" to run:
    2.   broadcast "test"
    3.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...