Skip to content

Lamp 3.0.3

Compare
Choose a tag to compare
@Revxrsal Revxrsal released this 18 Apr 11:29

Warning: This release introduces breaking changes to ArgumentStack.

  • French translation by @SkytAsul
  • Fix MissingArgumentException was not thrown with a missing flag value (#20)
  • Fixed annotation priorities when an annotation is present on both the class and method
  • Added CommandHandler.unregisterAllCommands()
  • @AutoComplete annotations can now accept * for a parameter to reference the default auto-completer
  • Use a supplier for Bukkit's config to avoid loading it (which would throw an error if the config had any problems)
  • Fixed flags not working correctly with Brigadier
  • Fixed flag completion being semi-broken
  • Introduced the ArgumentParser API
  • Added CommandHandler.getArgumentParser(), CommandHandler.setArgumentParser(ArgumentParser), CommandHandler.parseArguments(String...) and CommandHandler.parseArgumentsForCompletion(String...)
  • Fixed Brigadier commands being registered on the minecraft: namespace
  • Improved Brigadier support

ArgumentStack changes:

  • Removed ArgumentStack#of(String...)
  • Removed ArgumentStack#of(Collection<String>)
  • Removed ArgumentStack#forAutoCompletion(String...)
  • Removed ArgumentStack#fromString(String)
  • Renamed ArgumentStack#exactly(Collection<String> to #copy(Collection<String>)
  • Added ArgumentStack#copy(String...)