Package net.jeqo.bloons.commands.manager
Class CommandTabCompleter
java.lang.Object
net.jeqo.bloons.commands.manager.CommandTabCompleter
- All Implemented Interfaces:
org.bukkit.command.TabCompleter
A class used to handle the tab completion of the commands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of all the balloons that can be tab completedonTabComplete
(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args) Called when a player (or the console) uses the tab key
-
Constructor Details
-
CommandTabCompleter
public CommandTabCompleter()
-
-
Method Details
-
onTabComplete
public List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args) Called when a player (or the console) uses the tab key- Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Parameters:
sender
- Source of the command. For players tab-completing a command inside a command block, this will be the player, not the command block. Type org.bukkit.command.CommandSendercommand
- Command which was executed, type org.bukkit.command.Commandlabel
- Alias of the command which was used, type java.lang.Stringargs
- The arguments passed to the command, including final partial argument to be completed, type java.lang.String[]- Returns:
- A List of possible completions for the final argument, type java.util.List[java.lang.String] or null
-
getBalloonTabComplete
Get a list of all the balloons that can be tab completed- Returns:
- A list of all the balloons that can be tab completed, type java.util.List[java.lang.String]
-