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

Problems using the api #189

Closed thefrogline closed 3 years ago

thefrogline commented 3 years ago

Hello!; I've been trying to use this api for several days, but when trying to use maven shading, it doesn't work for me, but if I put the api in the plugins folder it works for me, but I would like to have it in the same jar everything, you could tell me how do this ?, currently I have my pom like this: https://pastebin.com/kVzzZVAB

, if you help me, I would be very grateful, recently I am working with maven and I do not understand image much what to do.

portlek commented 3 years ago

image

thefrogline commented 3 years ago

I guess I am using the api wrong, and the error is from the first error? "The SmartInventory.Builder administrator must be configured!", So if it works for me with the api in the plugins folder, but I don't want that, or is there no other way?

portlek commented 3 years ago

check this class https://github.com/MinusKube/SmartInvs/blob/master/src/main/java/fr/minuskube/inv/SmartInvsPlugin.java

thefrogline commented 3 years ago

omg, thank you very much, it worked for me, I was so attentive to the shade that I thought I was doing it wrong, but that was it, thank you very much ^^