Open creamgod45 opened 3 years ago
Caused by: java.lang.IllegalStateException: The manager of the SmartInventory.Builder must be set, or the SmartInvs should be loaded as a plugin.
at fr.minuskube.inv.SmartInventory$Builder.build(SmartInventory.java:163) ~[CG_ignoregui.jar:?]
at cg.creamgod45.SimpleInventory.
Do something like this inside your main class:
private InventoryManager invManager;
@Override
public void onEnable() {
this.invManager = new InventoryManager(this);
this.invManager.init();
}
Then, when creating your inventory:
SmartInventory.builder()
.size(...)
.manager(invManager)
...
Put it inside your plugin jar, initialize an InventoryManager in your plugin (don't forget to call the init() method), and add a .manager(invManager) to your SmartInventory Builders. what do you mean ?