Skip to content

Imperat v1.2

Compare
Choose a tag to compare
@Mqzn Mqzn released this 02 Nov 23:56
· 33 commits to master since this release

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());