Closed binda02 closed 2 years ago
Hey, you have to shade the Lib inside your Plugin.
How ?
With the maven shade plugin for example or the gradle shadow plugin.
Completed. But now I have this mistake.
[19:09:02] [Craft Scheduler Thread - 1 - 4Bedwars/WARN]: java.lang.NoSuchMethodException: java.util.Collections$SingletonList.
Are you sure that you have the latest ProtocolLib and NPCLib versions?
Sure. The newest ProtocolLib and NpcLib 2.5
Try development-snapshot
as version, 1.17 support is not included in 2.5 afaik.
its working
👍
[12.09 12:47:15.822] INFO: [Skyfall-1] [12:47:15 ERROR]: Error occurred while enabling 4Bedwars v1.0 (Is it up to date?) [12.09 12:47:15.822] INFO: [Skyfall-1] java.lang.NoClassDefFoundError: com/github/juliarn/npc/NPCPool [12.09 12:47:15.822] INFO: [Skyfall-1] at de.binda.Bedwars.Npcs.ShopNpc.(ShopNpc.java:32) ~[4Bedwars.jar:?]
[12.09 12:47:15.822] INFO: [Skyfall-1] at de.binda.Bedwars.Bedwars.onEnable(Bedwars.java:74) ~[4Bedwars.jar:?]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:535) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:449) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:725) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:306) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1212) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at java.lang.Thread.run(Thread.java:831) [?:?]
[12.09 12:47:15.822] INFO: [Skyfall-1] Caused by: java.lang.ClassNotFoundException: com.github.juliarn.npc.NPCPool
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:146) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[paper.jar:git-Paper-249]
[12.09 12:47:15.822] INFO: [Skyfall-1] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
[12.09 12:47:15.822] INFO: [Skyfall-1] ... 12 more