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.
- 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 commandcommand- the command which was executeds- the alias of the command which was usedstrings- 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 executedstrings- the arguments passed to the command, split by spacesplayer- the player who executed the command- Returns:
- a list of possible completions for the specified command string.
-