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 Commands in GUI

Discussion in 'Skript' started by GiorgixPRO, Feb 19, 2019.

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

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    Hello, I have this code:

    Code (Text):
    1. command /enchant:
    2.     trigger:
    3.         open chest with 1 row named "&b&lEnchants" to player
    4.         wait 1 tick
    5.         format slot 0 of player with light gray glass named "lol" with lore "lol" to close then run "warp a"
    When the player click the item doesn't execute the command.
    Thanks.

     
  2. Best Answer:
    Post #4 by Vrganj, Feb 23, 2019
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I never use SkQuery gui's because they are terrible, but the issue is because you have
    Code (Text):
    1. close then run "warp a"
    "warp a" is not a runnable code.... the "to run" is to run an effect, and im pretty sure you need to do something like
    Code (Text):
    1. close then run [execute player command "warp a"]
     
  4. GiorgixPRO

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    "warp a"] is not a text
     
  5. Vrganj

    Vrganj Active Member

    Joined:
    Dec 1, 2018
    Messages:
    67
    Likes Received:
    2
    Code (Skript):
    1.  
    2. command /enchant:
    3.     trigger:
    4.         open chest with 1 row named "&b&lEnchants" to player
    5.         wait 1 tick
    6.         format slot 0 of player with light gray glass named "lol" with lore "lol" to close then run [player command "warp a"]
     
  6. GiorgixPRO

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    Now works. Thanks.
     
  7. Vrganj

    Vrganj Active Member

    Joined:
    Dec 1, 2018
    Messages:
    67
    Likes Received:
    2
    Could you mark my answer? .-.
     
  8. GiorgixPRO

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    Done.
     
  9. Runakai

    Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    No, just please don't use SkQuery Guis anymore. Use Skript or TuSKe.
     
  10. Vrganj

    Vrganj Active Member

    Joined:
    Dec 1, 2018
    Messages:
    67
    Likes Received:
    2
    That's what I first meant to say, but the docs no longer say it's bad so no clue .-.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...