Skip to content

v2.1.0

Choose a tag to compare

@Mqzn Mqzn released this 02 Sep 21:57
· 294 commits to master since this release

One Last Dance

This update includes some revolutionary new API methods added and critical bug fixes.

Changes

  • Added methods #isGreedy (it returns false by default) , getConsumedArguments() (it defines the number of arguments the parameter requires to have its value/object resolved) to ParameterType, they are optionally overridable.
  • Fixed the fail on syntax matching in the CommandTree, especially when the parameter requires more than one argument to be resolved into an object instance.
  • Modified ParameterType#matchesInput(String input, CommandParameter<S> parameter) to ParameterType#matchesInput(int rawPosition, Context<S> ctx, CommandParameter<S> parameter)
  • Improved the matching logic for flags in execution and tab completion.
  • Removed the option strictCommandTree, now its only strict when matching with optional arguments.
  • Added new class HelpComponent and its implementatins (StringHelpComponent and AdventureHelpComponent) for customizability of the HelpTheme.
  • Removed the concept of pipe-lines and transformers for the help system.
  • Added @Format annotation, allows you to format a parameter the way you prefer.