Open Vrganj opened 1 year ago
Same issue occurs in core/src/main/java/dev/triumphteam/gui/components/nbt/Pdc.java
The library depends on a plugin to register events and work with PDC, I don't think anything can be done to support spigot's libraries system.
I think the plugin that's using the library should be able to supply the instance. Of course this can be a fallback method if you don't supply it.
I can use the library by shading, but not the newer
libraries
feature in plugin.yml.The issue is this: https://github.com/TriumphTeam/triumph-gui/blob/master/core/src/main/java/dev/triumphteam/gui/guis/BaseGui.java#L67
JavaPlugin#getProvidingPlugin throws an exception since libraries aren't provided by plugins.