Skip to content

0.7.0

Latest

Choose a tag to compare

@navoyan navoyan released this 08 Mar 16:08
· 49 commits to main since this release
862466c

General Information

This release is breaking because the previous one had some architectural problems. NMS 1.18 has been completely obfuscated and a bunch of bugs related to this change have been fixed in this release.

Major changes

  • Now it is necessary to manually add kotlin-stdlib and kotlinx.coroutines.
  • Refactored to separate publicly exposed and building DSL stuff.
  • Now objects that perform asynchronous operations use their own coroutine scope instead of the plugin one.
  • Event handler callbacks are no more suspend.
  • Controllers now implement Initializable instead of Controller and located in the place they related to.
  • Most builders' lambda parameters are now crossinline.

  • NodeDSLBuilder and its subclasses no more wrap Brigadier ArgumentBuilder.
  • Fixed Brigadier commands syntax error logging.

  • MenuPagination has been redesigned to be more intuitive.
  • Menus and their event handlers now have Inventory generic type parameters.
  • Menu slot indexing now starts from 0.

  • Event flow is now represented as a separate class named SharedEventFlow.
  • Added assign SharedEventFlow operator.

  • NbtData API has been completely redesigned.
  • Аdded support for all NBT data types.

  • ScoreboardController API is now marked as experimental.
  • Fixed color resetting in built scoreboard lines.

  • Improved event listening DSL by adding ListenerWithPlugin class.

  • ComponentBaseBuilder now duplicates BaseComponent before adding it to the sibling text.