Example on making TabAutoComplete commands!

Jan 25, 2021
Example on making TabAutoComplete commands!
  • So I looked on line for awhile on spigot and I could not find an example on how to make TabAutoComplete commands. So I decided to start experimenting and find out how to do TabAutoComplete in commands. once I found out how to do this I made an example plugin.

    Down below is the source code to my basic example plugin with TabAutoComplete commands. Feel free to use this in your plugin because I feel like this is very useful for plugins that have a lot of arguments in there commands.

    Code: http://pastebin.com/6NsN6f6X
    Plugin Demo: https://www.spigotmc.org/resources/example-tab-auto-complete-commands.8779/

    -Eric Golde 6/28/15

    If you don't specify a TabCompleter with getCommand("YOURCOMMAND").setTabCompleter(YOUR_TABCOMPLETER); It will first try to automatically create Completion, but that doesn't always work. So If your TabCompletion that you created doesn't work. Try to set it via this Command

    - chibbi 1/25/21
  • Loading...
  • Loading...