Skip to content

Imperat v1.0.0-b.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mqzn Mqzn released this 25 Sep 00:23
· 83 commits to master since this release

Changes:

There are several internal and API changes in this release.

API changes

  • Added new feature Source Resolver allowing for custom command sources.

  • Added new platform support for Velocity the proxy API in minecraft

  • Added tab-completion of parameter's formats (e.g: <number>).
    ONLY if the parameter doesn't have ANY type of suggestion resolvers.

  • Removed Platform specific resolvers/processors e.g: BukkitResolvers

  • Added interface TypeSuggestionResolver for specific suggestion resolvers that are linked to a type, while refactoring the original SuggestionResolver to accept only one generic type parameter (e.g: SuggestionResolver<S>) and refactored the overloaded static method SuggestionResolver#plain into SuggestionResolver#type making it return TypeSuggestionResolver.

  • Added static method SuggestionResolver#plain to return plain SuggestionResolver.

Internal changes

  • Renamed UsageContextMatch to CommandDispatch
  • Added internal default resolvers of various types for minecraft-related platforms.
  • BUG-FIX: fixed a bug where the command tree wasn't identifying flags as nodes during dispatching.
  • Removed SimpleAutoCompleter and AdvancedAutoCompleter making AutoCompleter a class instead of being abstract.