Interface AdminCommandCompleter
- All Known Implementing Classes:
AddCommand
,AdminCommandBase
,ARerollCommand
,AShowCommand
,CompleteCommand
,ConvertCommand
,CustomCompleteCommand
,OpenCommand
,RemoveCommand
,ResetCommand
public interface AdminCommandCompleter
Interface for providing tab-completion suggestions for admin commands in the O'DailyQuests plugin.
This interface defines the method onTabComplete(CommandSender, String[])
,
which is used to provide dynamic suggestions during command argument entry.
It allows for context-aware tab-completion, such as subcommands, player names, or other dynamic options.
-
Method Summary
Modifier and TypeMethodDescriptiononTabComplete
(org.bukkit.command.CommandSender sender, String[] args) Provides tab-completion suggestions for the command based on the current arguments.
-
Method Details
-
onTabComplete
Provides tab-completion suggestions for the command based on the current arguments.This method is called when a player or console user presses the TAB key while typing a command. You can use it to offer context-aware completions such as subcommands, player names, or any other dynamic options.
Returning
null
will allow Bukkit to automatically suggest online player names. Returning an empty list will disable tab completion at that argument position.- Parameters:
sender
- the command sender (can be a player or the console)args
- the arguments currently entered for the command- Returns:
- a list of possible completions,
null
to let Bukkit suggest player names, or an empty list to disable suggestions
-