Guarmanda / LootChest

Plugin to reload chest with hologram, particles, and editing menu
GNU General Public License v3.0
11 stars 23 forks source link

Failed to load on 1.21.3's Paper build (unsupported) #84

Open mrfloris opened 3 days ago

mrfloris commented 3 days ago

I saw on spigot that there's an untested .1 release, the .3 release doesn't seem to work - so I thought i'd at least let you know.

[16:54:23] [Server thread/INFO]: [LootChest] Enabling LootChest v2.4.5
[16:54:23] [Server thread/WARN]: [LootChest] Unsupported server version: 1.21.3-48-817550c (MC: 1.21.3)
[16:54:23] [Server thread/WARN]: [LootChest] Plugin will be disabled.
[16:54:23] [Server thread/INFO]: [LootChest] Disabling LootChest v2.4.5
[16:54:23] [Server thread/ERROR]: Error occurred while disabling LootChest v2.4.5
java.lang.NullPointerException: Cannot invoke "eu.decentholo.holograms.api.holograms.HologramManager.destroy()" because "this.hologramManager" is null
    at LootChest.jar/eu.decentholo.holograms.api.DecentHolograms.disable(DecentHolograms.java:75) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onDisable(DecentHologramsAPI.java:65) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.DecentHologramsPlugin.onDisable(DecentHologramsPlugin.java:24) ~[LootChest.jar:?]
    at LootChest.jar/fr.black_eyes.lootchest.Main.onDisable(Main.java:84) ~[LootChest.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at LootChest.jar/eu.decentholo.holograms.api.DecentHolograms.load(DecentHolograms.java:54) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onLoad(DecentHologramsAPI.java:36) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.DecentHologramsPlugin.onLoad(DecentHologramsPlugin.java:13) ~[LootChest.jar:?]
    at LootChest.jar/fr.black_eyes.lootchest.Main.onEnable(Main.java:150) ~[LootChest.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:643) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:592) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:768) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:530) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:326) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1234) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:340) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
[16:54:23] [Server thread/ERROR]: Error occurred while enabling LootChest v2.4.5 (Is it up to date?)
java.lang.IllegalStateException: zip file closed
    at java.base/java.util.zip.ZipFile.ensureOpen(ZipFile.java:846) ~[?:?]
    at java.base/java.util.zip.ZipFile.getEntry(ZipFile.java:338) ~[?:?]
    at java.base/java.util.jar.JarFile.getEntry(JarFile.java:516) ~[?:?]
    at java.base/java.util.jar.JarFile.getJarEntry(JarFile.java:471) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:209) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:169) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
    at LootChest.jar/eu.decentholo.holograms.api.DecentHolograms.enable(DecentHolograms.java:59) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onEnable(DecentHologramsAPI.java:51) ~[LootChest.jar:?]
    at LootChest.jar/eu.decentholo.holograms.DecentHologramsPlugin.onEnable(DecentHologramsPlugin.java:18) ~[LootChest.jar:?]
    at LootChest.jar/fr.black_eyes.lootchest.Main.onEnable(Main.java:151) ~[LootChest.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:643) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:592) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:768) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:530) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:326) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1234) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:340) ~[paper-1.21.3.jar:1.21.3-48-817550c]
    at java.base/java.lang.Thread.run(Thread.java:1570) ~[?:?]
smscentras commented 18 hours ago

Same problem here:

[06:30:42] [Server thread/INFO]: [LootChest] Enabling LootChest v2.4.5
[06:30:42] [Server thread/WARN]: [LootChest] Unsupported server version: 1.21.3-2345-55d4309 (MC: 1.21.3)
[06:30:42] [Server thread/WARN]: [LootChest] Plugin will be disabled.
[06:30:42] [Server thread/INFO]: [LootChest] Disabling LootChest v2.4.5
[06:30:42] [Server thread/ERROR]: Error occurred while disabling LootChest v2.4.5
java.lang.NullPointerException: Cannot invoke "eu.decentholo.holograms.api.holograms.HologramManager.destroy()" because "this.hologramManager" is null
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHolograms.disable(DecentHolograms.java:75) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onDisable(DecentHologramsAPI.java:65) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.DecentHologramsPlugin.onDisable(DecentHologramsPlugin.java:24) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/fr.black_eyes.lootchest.Main.onDisable(Main.java:84) ~[LootChest.2.4.5.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:550) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHolograms.load(DecentHolograms.java:54) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onLoad(DecentHologramsAPI.java:36) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.DecentHologramsPlugin.onLoad(DecentHologramsPlugin.java:13) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/fr.black_eyes.lootchest.Main.onEnable(Main.java:150) ~[LootChest.2.4.5.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:657) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:606) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:771) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:533) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:360) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1249) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:343) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
[06:30:42] [Server thread/ERROR]: Error occurred while enabling LootChest v2.4.5 (Is it up to date?)
java.lang.NoClassDefFoundError: eu/decentholo/holograms/api/nms/NMS
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHolograms.enable(DecentHolograms.java:59) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.api.DecentHologramsAPI.onEnable(DecentHologramsAPI.java:51) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/eu.decentholo.holograms.DecentHologramsPlugin.onEnable(DecentHologramsPlugin.java:18) ~[LootChest.2.4.5.jar:?]
    at LootChest.2.4.5.jar/fr.black_eyes.lootchest.Main.onEnable(Main.java:151) ~[LootChest.2.4.5.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:657) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:606) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:771) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:533) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:360) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1249) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:343) ~[purpur-1.21.3.jar:1.21.3-2345-55d4309]
    at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ClassNotFoundException: eu.decentholo.holograms.api.nms.NMS
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:199) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:166) ~[purpur-api-1.21.3-R0.1-SNAPSHOT.jar:?]
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
    ... 16 more
Guarmanda commented 16 hours ago

As the error said, I didn't update the plugin to support 1.21.3 yet^^

mrfloris commented 13 hours ago

Sure, but I am just sharing to let you know. So many developers in the community say, 'I never heard anybody complain, so I thought it worked', while we patiently waited. This is a courtesy message to inform you that an update is needed. Best of luck with the upgrade process, we've upgraded now that Paper has announced 1.21.3 to be stable; unfortn. For the time being without lc, we're excited to have it in our /santa event world again in December.

Guarmanda commented 12 hours ago

Yeah, most of the time that's my thing too, many people complain about performance issues while I don't have any in my tests, and I don't understand why. Sometimes, the only possible tests is a real running server with people on it.

The update to do is really tiny I think, last time I just had to add a line to my version class. But I have bigger updates to do too: I want to replace the fall effect with packets. I almost finished it.

mrfloris commented 12 hours ago

Yeah, most of the time that's my thing too, many people complain about performance issues while I don't have any in my tests, and I don't understand why. Sometimes, the only possible tests is a real running server with people on it.

The update to do is really tiny I think, last time I just had to add a line to my version class. But I have bigger updates to do too: I want to replace the fall effect with packets. I almost finished it.

That sounds promising. Don't forget that enum changed to interface, affecting things related to sounds, biome, etc.