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 our 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.

Messages!

Discussion in 'Skript' started by TheCringleYT, Oct 6, 2019.

  1. TheCringleYT

    TheCringleYT Well-Known Member

    Joined:
    Sep 29, 2019
    Messages:
    53
    Likes Received:
    1
    Hello again,

    I want to create a command so when you do an unknown command it says "Unfortunately, that is an unknown command. Please do /commands for command help"

    Then when you do /commands it opens a GUI with all the available commands for a default rank. (Please specify these in your Skript, I want examples) when you click on for example 'Generators it opens another GUI with generators. (Cobblestone, Redstone etc.) with a lore that tell you how to use them.

    Answers would be amazing!

    Thanks,

    - TheCringleYT
     
  2. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    I havent tested it but it should work. Here ya go:

    Code (Text):
    1. command /commands:
    2.     trigger:
    3.         wait 3 ticks
    4.         open chest with 1 row named "&eCommands" to player
    5.         format slot 0 of player with 1 diamond named "&aGenerators" to close then run [make player execute command "commands:generators"]
    6.         format slot 1 of player with 1 diamond named "&aBLABLA" to close
    7.         format slot 2 of player with 1 diamond named "&aBLABLA" to close
    8.         format slot 3 of player with 1 diamond named "&aBLABLA" to close
    9.         format slot 4 of player with 1 diamond named "&aBLABLA" to close
    10.         format slot 5 of player with 1 diamond named "&aBLABLA" to close
    11.         format slot 6 of player with 1 diamond named "&aBLABLA" to close
    12.         format slot 7 of player with 1 diamond named "&aBLABLA" to close
    13.         format slot 8 of player with 1 diamond named "&aBLABLA" to close
    14.        
    15.        
    16.        
    17. command /commands:generators:
    18.     trigger:
    19.         wait 3 ticks
    20.         open chest with 1 row named "&eGenerators" to player
    21.         format slot 0 of player with 1 diamond named "&aGenerators" to close
    22.         format slot 1 of player with 1 diamond named "&aGenerator 1" to close
    23.         format slot 2 of player with 1 diamond named "&aGenerator 1" to close
    24.         format slot 3 of player with 1 diamond named "&aGenerator 1" to close
    25.         format slot 4 of player with 1 diamond named "&aGenerator 1" to close
    26.         format slot 5 of player with 1 diamond named "&aGenerator 1" to close
    27.         format slot 6 of player with 1 diamond named "&aGenerator 1" to close
    28.         format slot 7 of player with 1 diamond named "&aGenerator 1" to close
    29.         format slot 8 of player with 1 arrow named "&3Back" to close then run [make player execute command "commands"]
     
  3. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    195
    Likes Received:
    18
    You can change the unknown command message in the spigot.yml file for your server.
     
  4. TheCringleYT

    TheCringleYT Well-Known Member

    Joined:
    Sep 29, 2019
    Messages:
    53
    Likes Received:
    1
    Thanks so much everyone!

    Greatly appreciated.
     
Loading...