public class SpongeCommandDisambiguator extends Object implements org.spongepowered.api.util.command.dispatcher.Disambiguator
Constructor and Description |
---|
SpongeCommandDisambiguator(org.spongepowered.api.Game game)
Disambiguator that takes preferences from the global configuration, falling back to
SimpleDispatcher.FIRST_DISAMBIGUATOR . |
Modifier and Type | Method and Description |
---|---|
Optional<org.spongepowered.api.util.command.CommandMapping> |
disambiguate(org.spongepowered.api.util.command.CommandSource source,
String aliasUsed,
List<org.spongepowered.api.util.command.CommandMapping> availableOptions) |
public SpongeCommandDisambiguator(org.spongepowered.api.Game game)
SimpleDispatcher.FIRST_DISAMBIGUATOR
.game
- The game instance to be usedpublic Optional<org.spongepowered.api.util.command.CommandMapping> disambiguate(org.spongepowered.api.util.command.CommandSource source, String aliasUsed, List<org.spongepowered.api.util.command.CommandMapping> availableOptions)
disambiguate
in interface org.spongepowered.api.util.command.dispatcher.Disambiguator