Closed ecstaticnoodle closed 2 months ago
And here it is opening it with a command.
[09:28:14] [Server thread/INFO]: EcstaticNoodle issued server command: /infobook
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] Exception in command: infobook
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] java.lang.NoClassDefFoundError: Could not initialize class net.leonardo_dgs.interactivebooks.lib.nbtapi.NBTReflectionUtil
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.nbtapi.NBTCompound.setString(NBTCompound.java:176)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.IBook.lambda$getItem$0(IBook.java:196)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.nbtapi.NBT.modify(NBT.java:248)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.IBook.getItem(IBook.java:195)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.IBook.open(IBook.java:165)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.CommandOpenBook.onCommand(CommandOpenBook.java:23)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/java.lang.reflect.Method.invoke(Method.java:580)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.acf.RegisteredCommand.invoke(RegisteredCommand.java:152)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.acf.BaseCommand.executeCommand(BaseCommand.java:578)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.acf.BaseCommand.execute(BaseCommand.java:513)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.acf.RootCommand.execute(RootCommand.java:99)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.acf.BukkitRootCommand.execute(BukkitRootCommand.java:84)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:91)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:31)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:19)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:443)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.Commands.performCommand(Commands.java:350)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.Commands.performCommand(Commands.java:337)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.commands.Commands.performCommand(Commands.java:332)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2214)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2491)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at org.bukkit.craftbukkit.entity.CraftPlayer.chat(CraftPlayer.java:755)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at DeluxeMenus-1.14.1-DEV-183.jar//com.extendedclip.deluxemenus.action.ClickActionTask.run(ClickActionTask.java:94)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:86)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:475)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1726)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:473)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1598)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/java.lang.Thread.run(Thread.java:1583)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NullPointerException [in thread "Server thread"]
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/java.util.ImmutableCollections$MapN.probe(ImmutableCollections.java:1328)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/java.util.ImmutableCollections$MapN.get(ImmutableCollections.java:1242)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at java.base/java.util.ImmutableCollections$AbstractImmutableMap.getOrDefault(ImmutableCollections.java:1097)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at io.papermc.paper.pluginremap.reflect.PaperReflection.mapDeclaredFieldName(PaperReflection.java:79)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at io.papermc.reflectionrewriter.runtime.AbstractDefaultRulesReflectionProxy.getDeclaredField(AbstractDefaultRulesReflectionProxy.java:90)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at io.papermc.paper.pluginremap.reflect.PaperReflectionHolder.getDeclaredField(Unknown Source)
[09:28:14] [Server thread/ERROR]: [InteractiveBooks] [ACF] at InteractiveBooks 1.7.6.jar//net.leonardo_dgs.interactivebooks.lib.nbtapi.NBTReflectionUtil.
Fixed in v1.7.7
I'm still having issues on a paper 1.21.1 server:
[InteractiveBooks] Loading server plugin InteractiveBooks v1.7.7-SNAPSHOT
[NBTAPI] Enabling NBTAPI v2.13.2
Please use the latest version.
I am well aware InteractiveBooks does not claim to work with 1.21.1, but here is the error it is giving me when trying to give players a book.
[09:20:55] [User Authenticator #20/INFO]: UUID of player CampDJC is 65fc2ca7-7e5a-45ab-92f9-f3fa0e80b81d [09:20:56] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to InteractiveBooks v1.7.6 java.lang.ExceptionInInitializerError: null at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.lib.nbtapi.NBTCompound.setString(NBTCompound.java:176) ~[InteractiveBooks 1.7.6.jar:?] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.IBook.lambda$getItem$0(IBook.java:196) ~[InteractiveBooks 1.7.6.jar:?] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.lib.nbtapi.NBT.modify(NBT.java:248) ~[InteractiveBooks 1.7.6.jar:?] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.IBook.getItem(IBook.java:195) ~[InteractiveBooks 1.7.6.jar:?] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.PlayerListener.lambda$onPlayerJoin$1(PlayerListener.java:63) ~[InteractiveBooks 1.7.6.jar:?] at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) ~[?:?] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.PlayerListener.onPlayerJoin(PlayerListener.java:60) ~[InteractiveBooks 1.7.6.jar:?] at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:84) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:1.21.1-26-52ae4ad] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?] at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:347) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.network.ServerConfigurationPacketListenerImpl.handleConfigurationFinished(ServerConfigurationPacketListenerImpl.java:173) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:22) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:13) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1537) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1514) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1507) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1629) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1304) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] Caused by: java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "pk" is null at java.base/java.util.ImmutableCollections$MapN.probe(ImmutableCollections.java:1328) ~[?:?] at java.base/java.util.ImmutableCollections$MapN.get(ImmutableCollections.java:1242) ~[?:?] at java.base/java.util.ImmutableCollections$AbstractImmutableMap.getOrDefault(ImmutableCollections.java:1097) ~[?:?] at io.papermc.paper.pluginremap.reflect.PaperReflection.mapDeclaredFieldName(PaperReflection.java:79) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at io.papermc.reflectionrewriter.runtime.AbstractDefaultRulesReflectionProxy.getDeclaredField(AbstractDefaultRulesReflectionProxy.java:90) ~[reflection-rewriter-runtime-0.0.3.jar:?] at io.papermc.paper.pluginremap.reflect.PaperReflectionHolder.getDeclaredField(Unknown Source) ~[paper-1.21.1.jar:1.21.1-26-52ae4ad] at InteractiveBooks 1.7.6.jar/net.leonardo_dgs.interactivebooks.lib.nbtapi.NBTReflectionUtil.(NBTReflectionUtil.java:59) ~[InteractiveBooks 1.7.6.jar:?]
... 31 more