Class TokenTabCompleter
java.lang.Object
com.github.mafelp.minecraft.tabCompleters.TokenTabCompleter
- All Implemented Interfaces:
org.bukkit.command.TabCompleter
The method that handles all the tab completion for the /whisper and /dcmsg commands.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command cmd, @NotNull String alias, @NotNull String[] args)
The Method that handles the getting of of the results.
-
Constructor Details
-
TokenTabCompleter
public TokenTabCompleter()
-
-
Method Details
-
onTabComplete
public List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command cmd, @NotNull @NotNull String alias, @NotNull @NotNull String[] args)The Method that handles the getting of of the results.- Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Parameters:
sender
- The sender that is typing the command.cmd
- The command that the sender is trying to type.alias
- The first argument of the command, which also can be an alias.args
- The arguments that are provided until now.- Returns:
- A list of available results for this command.
-