MinusKube / SmartInvs

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

Do I need to register anything for the clickable items to work? #206

Closed TakkoTakko closed 2 years ago

TakkoTakko commented 2 years ago

Do I need to register anything for the clickable items to work?

MinusKube commented 2 years ago

Hi, if you're putting SmartInvs directly as a plugin, you have nothing to do, besides using the clickable items correctly, inside a SmartInventory, like shown in the Gitbook examples. But if you're exporting SmartInvs inside your own plugin jar, you need to initialize an InventoryManager and call the init() method on it, inside your plugin's onEnable(), then pass this manager as argument to the .manager(...) method when building an inventory.

Here's an example: https://github.com/MinusKube/SmartInvs/issues/191#issuecomment-914487546

TakkoTakko commented 2 years ago

Okay, i made it right you said, but it didn*t work?

MinusKube commented 2 years ago

What is happening? The items appear in the inventory but when you click them nothing happens?