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 Help me

Discussion in 'Skript' started by NoCriticals, Apr 11, 2018.

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

    NoCriticals Member

    Joined:
    Apr 7, 2018
    Messages:
    4
    Likes Received:
    0
    so..... i forgot to do this earlier and i don't know how to do it in the first place.
    when i try to do /trophies help, it pops up the GUI and when i do /trophies idk, it will still pop up the GUI
    i need to know how to make it so it will only need "/trophies help" to pop up the GUI and not allow other text after "/trophies"
    i am still new to this.

    Code (Skript):
    1. command /trophies [<text>]:
    2.     aliases: /mt
    3.     trigger:
    4.         if arg 1 is not set:
    5.             send "{@prefix} Do &4/trophies help&f, for more info about this plugin!" to player
    6.         else if arg 1 is set:
    7.             if arg 1 does not have "help"
    8.                 send "{@prefix} Do &4/trophies help&f, for more info about this plugin!" to player
    9. #======MENU=====
    10.             open chest with 1 rows named "           &8&lMOB KILLS" to player
    11.         format slot 0 of player with gray stained glass pane named "&4Click To Close" to close
    12.         format slot 1 of player with gray stained glass pane named "&4Click To Close" to close
    13.         format slot 2 of player with dragon egg named "&dDragon Kills" with lore "&a&lKills: %{dragonkill}%" to close
    14.         format slot 3 of player with gray stained glass pane named "&4Click To Close" to close
    15.         format slot 4 of player with red stained glass pane named "&4&lEXIT" to close
    16.         format slot 5 of player with gray stained glass pane named "&4Click To Close" to close
    17.         format slot 6 of player with soul sand named "&7Wither Kills" with lore "&a&lKills: %{witherkill}%" to close
    18.         format slot 7 of player with gray stained glass pane named "&4Click To Close" to close
    19.         format slot 8 of player with gray stained glass pane named "&4Click To Close" to close
    20.         format slot 9 of player with gray stained glass pane named "&4Click To Close" to close
    21.      


     
    #1 NoCriticals, Apr 11, 2018
    Last edited: Apr 11, 2018
  2. Best Answer:
    Post #4 by ShaneBee, Apr 11, 2018
  3. CharcoalToast

    CharcoalToast Member

    Joined:
    Mar 10, 2018
    Messages:
    23
    Likes Received:
    4
    Please set this in <code> tags so it's easier to read.
     
  4. NoCriticals

    NoCriticals Member

    Joined:
    Apr 7, 2018
    Messages:
    4
    Likes Received:
    0
    Edited sorry for that small problem
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    “If arg 1 does not have” I don’t think is a thing
    Try “if arg 1 does not contain” or “if arg 1 is not”
     
  6. CharcoalToast

    CharcoalToast Member

    Joined:
    Mar 10, 2018
    Messages:
    23
    Likes Received:
    4
    The problem is also that you indentated ALL the format slot lines incorrectly. Please look again at the indentation.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...