How to make a tab complete

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.
Jul 11, 2020
1
0
1
22
Skript Version: idk how to find that
Skript Author: GTNT_Animatios
Minecraft Version: 1.15.2

Is there a way to make a tab completer for sub-commands for skript?
https://cdn.discordapp.com/attachme...9910/Screen_Shot_2020-07-11_at_9.21.24_AM.png like this but for sub-commands. I'm trying to make a /gm command and want all the tab complete to be the gamemodes

Code:
command /gm <Gamemode>:
  permission: op
  trigger:
    set gamemode of player to arg-1
code for the command so far, just need the subcommand thing :emoji_grinning:
 
Last edited:
If I remember correctly, it was something like this:
code_language.skript:
on chat tab complete:
    event-string is "/gm":
        add "creative" to {_gamemode::*}
        add "survival" to {_gamemode::*}
        add "adventure" to {_gamemode::*}
        add "spectator" to {_gamemode::*}
        loop {_gamemode::*}:
            add loop-value to completions
You need MundoSk to do this.
 
Status
Not open for further replies.