Plugin
, TabExecutor
JavaPlugin
, PluginBase
public interface TabCompleter
Modifier and Type | Method | Description |
---|---|---|
@Nullable List<String> |
onTabComplete(@NotNull CommandSender sender,
@NotNull Command command,
@NotNull String alias,
@NotNull String[] args) |
Requests a list of possible completions for a command argument.
|
@Nullable @Nullable List<String> onTabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args)
sender
- Source of the command. For players tab-completing a
command inside of a command block, this will be the player, not
the command block.command
- Command which was executedalias
- The alias usedargs
- The arguments passed to the command, including final
partial argument to be completed and command labelCopyright © 2020. All rights reserved.