NBT-API

NBT-API

98.9k Downloads

Doesn't work with 1.13

leonardo-dgs opened this issue ยท 3 comments

commented

With Minecraft 1.13 Item-NBT-API doesn't work, instead with Minecraft 1.13.2 and other versions has no problems.
I get this error:

[16:35:47 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'ibooks' in plugin InteractiveBooks v1.4.8
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at org.bukkit.craftbukkit.v1_13_R1.CraftServer.dispatchCommand(CraftServer.java:694) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.PlayerConnection.handleCommand(PlayerConnection.java:1634) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.PlayerConnection.a(PlayerConnection.java:1469) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_241]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_241]
        at net.minecraft.server.v1_13_R1.SystemUtils.a(SourceFile:198) [spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:884) [spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411) [spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819) [spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717) [spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class net.leonardo_dgs.interactivebooks.nbtapi.utils.nmsmappings.ReflectionMethod
        at net.leonardo_dgs.interactivebooks.nbtapi.NBTCompound.setString(NBTCompound.java:77) ~[?:?]
        at net.leonardo_dgs.interactivebooks.IBook.getItem(IBook.java:182) ~[?:?]
        at net.leonardo_dgs.interactivebooks.CommandIBooks.onCommand(CommandIBooks.java:105) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.13.jar:git-Spigot-fe3ab0d-162bda9]
        ... 15 more
commented

Early broken versions of Minecraft releases are not supported(like 1.13.0/1.13.1/1.12.0/1.14.0 etc). Just update to 1.13.2?

commented

@tr7zw It's for a public plugin.

commented

Yea but no server should ever run 1.13.0? It has a remote code execution bug and was replaced by 1.13.2 to which everyone can update without breaking stuff. Also, less than 0.5% of servers are running 1.13.0(https://bstats.org/global/bukkit), so yea, not going to spend time to make the nbtapi compatible with an unused, replaced and broken version.