MinusKube / SmartInvs

Advanced Inventory API for your Minecraft Bukkit plugins.
https://minuskube.gitbook.io/smartinvs/
Apache License 2.0
262 stars 65 forks source link

Allow init of the inventory manager from outside #128

Closed Djaytan closed 4 years ago

Djaytan commented 4 years ago

The aim of this enhancement is to allow the init of the InventoryManager instance of the program from a loaded plugin when he is shade in it (and therefore the SmartInvsPlugin class isn't loaded by the Bukkit plugin loader in this case which prevent init like actually is doing in onEnable() method).

Sytm commented 4 years ago

This feature is actually already present in the 1.3.0 branch. See

Djaytan commented 4 years ago

Ok great ! But can't find the new version api through maven like specified in the new README :/

MinusKube commented 4 years ago

The 1.3.0 version is still WIP, you can build it yourself if you want, but keep in mind it's not finished and things will probably change.

Also, this change isn't needed, you can simply initialize your own InventoryManager inside your plugin, and pass it when building inventories using the SmartInventory.Builder#manager(InventoryManager) method.

Anyway, thanks for your interest in SmartInvs :)