Class AbstractTabExecutor

All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public abstract class AbstractTabExecutor extends AbstractPlayerCommandExecutor implements org.bukkit.command.TabCompleter
Abstract class representing a tab command executor.
See Also:
  • TabExecutor
  • Constructor Details

    • AbstractTabExecutor

      public AbstractTabExecutor()
  • Method Details

    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings)
      Specified by:
      onTabComplete in interface org.bukkit.command.TabCompleter
      Parameters:
      commandSender - the sender of the command
      command - the command which was executed
      s - the alias of the command which was used
      strings - the arguments passed to the command, split by spaces
      Returns:
      a list of possible completions for the specified command string.
      See Also:
      • TabCompleter.onTabComplete(CommandSender, Command, String, String[])
    • onPlayerTabComplete

      protected abstract List<String> onPlayerTabComplete(org.bukkit.command.Command command, String[] strings, org.bukkit.entity.Player player)
      Parameters:
      command - the command which was executed
      strings - the arguments passed to the command, split by spaces
      player - the player who executed the command
      Returns:
      a list of possible completions for the specified command string.