Package com.ultikits.ultitools.abstracts
Class AbstractTabExecutor
java.lang.Object
com.ultikits.ultitools.abstracts.AbstractCommand
com.ultikits.ultitools.abstracts.AbstractPlayerCommandExecutor
com.ultikits.ultitools.abstracts.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononPlayerTabComplete(org.bukkit.command.Command command, String[] strings, org.bukkit.entity.Player player) onTabComplete(org.bukkit.command.CommandSender commandSender, org.bukkit.command.Command command, String s, String[] strings) Methods inherited from class com.ultikits.ultitools.abstracts.AbstractPlayerCommandExecutor
onCommand, onPlayerCommandMethods inherited from class com.ultikits.ultitools.abstracts.AbstractCommand
getHelpCommand, sendErrorMessage, sendHelpMessage
-
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:
onTabCompletein interfaceorg.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:
-
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.
指定指令的可能补全列表。
-