Repository navigation
v2.1.0
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) toParameterType, 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)toParameterType#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
HelpComponentand its implementatins (StringHelpComponentandAdventureHelpComponent) for customizability of theHelpTheme. - Removed the concept of pipe-lines and transformers for the help system.
- Added
@Formatannotation, allows you to format a parameter the way you prefer.