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.

支持Tab补全指令执行器的抽象类。

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.
      指定指令的可能补全列表。