triumph-gui icon indicating copy to clipboard operation
triumph-gui copied to clipboard

dev.triumphteam.gui.guis.BaseGui is not provided by a interface io.papermc.paper.plugin.provider.classloader.ConfiguredPluginClassLoader

Open Euphillya opened this issue 1 year ago • 2 comments

Error :

Caused by: java.lang.IllegalArgumentException: class dev.triumphteam.gui.guis.BaseGui is not provided by a interface io.papermc.paper.plugin.provider.classloader.ConfiguredPluginClassLoader
        at org.bukkit.plugin.java.JavaPlugin.getProvidingPlugin(JavaPlugin.java:459) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
        at dev.triumphteam.gui.guis.BaseGui.<clinit>(BaseGui.java:71) ~[?:?]
        ... 9 more

Reproduce :

  • Folia 1.21.1
 PaginatedGui gui = Gui.scrolling()
                    .title(Component.text("test " + offlinePlayer.getName()))
                    .rows(6)
                    .pageSize(45)
                    .scrollType(ScrollType.VERTICAL)
                    .create();

Euphillya avatar Sep 20 '24 07:09 Euphillya

Hi, I just tested and seemed to have worked perfectly fine on Folia 1.21.1. Are you using 3.1.10? Try a few other things like relocating, or trying with no other plugin in the server.

LichtHund avatar Sep 20 '24 11:09 LichtHund

Hi, I just tested and seemed to have worked perfectly fine on Folia 1.21.1. Are you using 3.1.10? Try a few other things like relocating, or trying with no other plugin in the server.

I did not use the implementation on gradle, but used libraries on the plugin.yml file

name: Plugins
version: '${version}'
main: fr.euphyllia.plugins.MyPlugins
api-version: 1.19
depend: [ NBTAPI ]
folia-supported: true

libraries:
  - com.google.code.gson:gson:2.11.0
  - dev.triumphteam:triumph-gui:3.1.10

Euphillya avatar Sep 27 '24 21:09 Euphillya

In version 3.1.11 I have added a method TriumphGui.init(plugin) where you can manually init the plugin that the library uses, which should fix this issue.

LichtHund avatar Dec 08 '24 10:12 LichtHund