Interface TabCompleter

All Known Subinterfaces:
Plugin, TabExecutor
All Known Implementing Classes:
JavaPlugin, PluginBase

public interface TabCompleter
Represents a class which can suggest tab completions for commands.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.String> onTabComplete​(CommandSender sender, Command command, java.lang.String alias, java.lang.String[] args)
    Requests a list of possible completions for a command argument.
  • Method Details

    • onTabComplete

      java.util.List<java.lang.String> onTabComplete​(CommandSender sender, Command command, java.lang.String alias, java.lang.String[] args)
      Requests a list of possible completions for a command argument.
      Parameters:
      sender - Source of the command
      command - Command which was executed
      alias - The alias used
      args - The arguments passed to the command, including final partial argument to be completed and command label
      Returns:
      A List of possible completions for the final argument, or null to default to the command executor