Class CommandTabCompleter

java.lang.Object
net.jeqo.bloons.commands.manager.CommandTabCompleter
All Implemented Interfaces:
org.bukkit.command.TabCompleter

public class CommandTabCompleter extends Object implements org.bukkit.command.TabCompleter
A class used to handle the tab completion of the commands
  • 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 interface org.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.CommandSender
      command - Command which was executed, type org.bukkit.command.Command
      label - Alias of the command which was used, type java.lang.String
      args - 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

      public List<String> 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]