dev.triumphteam.gui.guis.BaseGui is not provided by a interface io.papermc.paper.plugin.provider.classloader.ConfiguredPluginClassLoader
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();
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.
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
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.