v1.5.1
- Added
@Optionand@Flagto parse arguments as an option or flag. - Added 3 new methods to
CommandArgumentsclass.CommandArguments#getOption(String)- Gets the option parsed as an argument, can be null.CommandArguments#findOption(String)- Returns an optional that holds a list of parsed option.CommandArguments#isFlagPresent(String)- Returns true if the specified flag is present in the arguments.- Both option and flag annotations can be used multiple times in a single method.
- Added debug mode.
- Added
@Debugannotation. If a command method is annotated with this annotation, it will only be registered if the debug mode is enabled.
- Added
- Added
Option#DEBUGenum.- Use
CommandFramework#options().enableOption(Option.DEBUG);method to enable debug mode. - Now the default logger will be
DebugLoggerif the debug mode is enabled.
- Use
- Fixed server-side command permissions.
- Use
CommandFramework#optionsmethod to toggle options, other option methods are removed from the main class. - Updated tests for the new option and flag annotations.
Other Changes
- Updated badges in the README.md
- Updated content in the README.md
- Updated some wiki pages, documentation for the new annotations will be added later.
- Fixed GitHub actions instantly failing due to old version.
Full Changelog: 1.5.0...1.5.1