What's new with Imperat v1.2?
- Added a bypass permission for cooldowns, also included in the annotation itself
- Bug-Fix: primitive numeric-types weren't detected properly
- Bug-Fix: named suggestion resolvers' faulty registration.
- Replaced the old imperat instantiating system with the new config building system
example:
BukkitImperat imperat = BukkitConfigBuilder.builder(plugin)
.contextResolver(new YourContextResolver());
.namedSuggestionResolver("yourSuggestionResolver", new YourSuggestionResolver());
.parameterType(Duration.class, new YourParameterDuration())
.dependencyResolver(Plugin.class, ()-> plugin)
// add some other configurations
.build();
//registering your commands here
imperat.registerCommand(new YourCommand());