public interface Disambiguator
Modifier and Type | Method and Description |
---|---|
Optional<CommandMapping> |
disambiguate(CommandSource source,
String aliasUsed,
List<CommandMapping> availableOptions)
Disambiguate an alias in cases where there are multiple command mappings registered for a given alias.
|
Optional<CommandMapping> disambiguate(CommandSource source, String aliasUsed, List<CommandMapping> availableOptions)
source
- The CommandSource executing the commandaliasUsed
- The alias input by the useravailableOptions
- The commands registered to this alias