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.

Tab complete commands?

Discussion in 'Skript' started by pepper82, Apr 19, 2019.

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

    pepper82 Member

    Joined:
    Jan 26, 2017
    Messages:
    239
    Likes Received:
    1
    Hi all,
    how can I activate tab complete for my skript commands? Using latest skript on 1.13.2
     
  2. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    1,285
    Likes Received:
    72
    Medals:
    You can use something like this (requires skript-mirror):
    Code (Text):
    1. import:
    2.     org.bukkit.event.server.TabCompleteEvent
    3.     java.util.Arrays
    4.  
    5. on TabCompleteEvent:
    6.     event.getBuffer() starts with "/test"
    7.     set {_l::*} to "test1" and "test2"
    8.     set {_a} to Arrays.asList([{_l::*}])
    9.     event.setCompletions({_a})
     
Thread Status:
Not open for further replies.
Loading...