Skip to content

HuskyUI v0.5.0 for SpongeAPI 7.x-8.x

Compare
Choose a tag to compare
@codeHusky codeHusky released this 22 Jan 00:58
· 26 commits to master since this release

We now have JavaDocs!

Check them out here!

Features

  • Added ElementRegistry (SHOULD BE CONSIDERED EXPERIMENTAL)
    • Example
    • Allows you to put Elements within a player's inventory!
    • Call code in your plugin, open StateContainers, etc!
    • Methods with auto in them reference auto-inv feature
      • Delivers items to player on login.
      • If slot specified, will go into given slot. Please read the notes before using this feature.

Known Issues

  • Need to prevent dropping of UI items and/or (maybe?) preventing movement of fixed-position hotbar items.

Notes (Important!)

  • Specifying a slot for an auto-inv item will result in players having their inventory wiped. Please only do this if you've gotten explicit permission the server using the plugin via a config, or make this VERY CLEAR somewhere, as results could be disastrous if not properly disclosed.
  • Context won't have all the normal data inside of RunnableActions. Keep in mind that working with a state container or loading a page from a state container won't really work. You'll need to contact a state container or create one within your RunnableAction.

Please report any issues that occur during use of the ElementRegistry asap.