v1.5.1
- Added
@Option
and@Flag
to parse arguments as an option or flag. - Added 3 new methods to
CommandArguments
class.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
@Debug
annotation. If a command method is annotated with this annotation, it will only be registered if the debug mode is enabled.
- Added
- Added
Option#DEBUG
enum.- Use
CommandFramework#options().enableOption(Option.DEBUG);
method to enable debug mode. - Now the default logger will be
DebugLogger
if the debug mode is enabled.
- Use
- Fixed server-side command permissions.
- Use
CommandFramework#options
method 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