1.7.0
Notes
Command Deletion
This release adds the ability to delete commands when using supported platform implementations (JDA, javacord, Bukkit, Paper & PircBotX).
This feature has limited support when using Bukkit/Paper. Command deletion does work. However, command reloading is still (and there are currently no plans for this to change) unsupported. Use it at your own risk.
Annotations
Do note the addition of the annotation processor. You can find installation instructions here. Instructions about how to utilise @CommandContainers will be added to the documentation soon. However, the gist of it can be found in the @CommandContainer JavaDoc. Furthermore, if you do use the annotation processor, you may find that your @CommandMethod annotated methods have some compile-time validation. This system will be expanded upon in the future, so feel free to suggest more features in the Issue Tracker.
Changes
Added
- Core: Allow for setting a custom
CaptionVariableReplacementHandleron the command manager (#352) - Core: Add
DurationArgumentfor parsingjava.time.Duration(#330) - Core: Add delegating command execution handlers (#363)
- Core: Add
builder()getter toCommand.Builder(#363) - Core: Add flag yielding modes to
StringArgumentandStringArrayArgument(#367) - Core: Add apiguardian
@APIannotations (#368) - Core: Deprecate prefixed getters/setters in
CommandManager(#377) - Core: Add repeatable flags (#378)
- Annotations: Annotation string processors (#353)
- Annotations:
@CommandContainerannotation processing (#364) - Annotations:
@CommandMethodannotation processing for compile-time validation (#365) - Add root command deletion support (core/pircbotx/javacord/jda/bukkit/paper) (#369,
#371) - Bukkit/Paper: Full support for Minecraft 1.19
Fixed
- Core: Fix missing caption registration for the regex caption (#351)
- Core: Fix NPE thrown on empty command tree (#337)
- Annotations: Fix MutableCommandBuilder Java/Kotlin interoperability issues (#342)