Big error and doesn't work anymore #6

Open
opened 2021-11-28 14:56:41 +00:00 by Doskii · 0 comments
Doskii commented 2021-11-28 14:56:41 +00:00 (Migrated from github.com)

Problem

While updating to 1.17.1 I also updated LimitedCreative 2.4 (from this fork) to 2.5 (from this fork) but now I get a massive error whenever somebody changes to creative/survival and their items follow them into their new gamemode.

To be clear, both 2.4 and 2.5 have the same issue

Steps to reproduce

  1. Setup a basic Spigot server for 1.17.1
  2. Add the plugins LimitedCreative 2.5 (https://github.com/TBMCPlugins/LimitedCreative/releases/tag/v2.5), WorldEdit 7.2.7 and WorldGuard 7.0.6 (last two might be irrelevant but it's what I have installed so)
  3. Start server, login and change your gamemode

The error in console

[15:48:03] [Server thread/WARN]: java.lang.RuntimeException: java.lang.ClassNotFoundException: net.minecraft.world.entity.player.NBTTagCompound
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.lambda$serialize$2(ReflectionStorage.java:185)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[15:48:03] [Server thread/WARN]:        at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.serialize(ReflectionStorage.java:189)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.store(ReflectionStorage.java:57)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.Inventory.save(Inventory.java:58)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.ModInventories.onSetGameMode(ModInventories.java:97)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.PlayerListener.onPlayerGameModeChange(PlayerListener.java:49)
[15:48:03] [Server thread/WARN]:        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[15:48:03] [Server thread/WARN]:        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[15:48:03] [Server thread/WARN]:        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[15:48:03] [Server thread/WARN]:        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589)
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.level.PlayerInteractManager.setGameMode(PlayerInteractManager.java:81)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.level.EntityPlayer.a(EntityPlayer.java:1649)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.commands.CommandGamemode.a(SourceFile:59)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.commands.CommandGamemode.a(SourceFile:35)
[15:48:03] [Server thread/WARN]:        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263)
[15:48:03] [Server thread/WARN]:        at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:177)
[15:48:03] [Server thread/WARN]:        at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:273)
[15:48:03] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_17_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45)
[15:48:03] [Server thread/WARN]:        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[15:48:03] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:790)
[15:48:03] [Server thread/WARN]:        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:775)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.dedicated.DedicatedServer.handleCommandQueue(DedicatedServer.java:475)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:439)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1217)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1050)
[15:48:03] [Server thread/WARN]:        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305)
[15:48:03] [Server thread/WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
[15:48:03] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.world.entity.player.NBTTagCompound
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147)
[15:48:03] [Server thread/WARN]:        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99)
[15:48:03] [Server thread/WARN]:        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[15:48:03] [Server thread/WARN]:        at java.base/java.lang.Class.forName0(Native Method)
[15:48:03] [Server thread/WARN]:        at java.base/java.lang.Class.forName(Class.java:375)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.serializeItemStack(ReflectionStorage.java:115)
[15:48:03] [Server thread/WARN]:        at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.lambda$serialize$2(ReflectionStorage.java:183)
[15:48:03] [Server thread/WARN]:        ... 38 more
## Problem While updating to 1.17.1 I also updated LimitedCreative 2.4 (from this fork) to 2.5 (from this fork) but now I get a massive error whenever somebody changes to creative/survival and their items follow them into their new gamemode. To be clear, both 2.4 and 2.5 have the same issue ## Steps to reproduce 1. Setup a basic Spigot server for 1.17.1 2. Add the plugins LimitedCreative 2.5 (https://github.com/TBMCPlugins/LimitedCreative/releases/tag/v2.5), WorldEdit 7.2.7 and WorldGuard 7.0.6 (last two might be irrelevant but it's what I have installed so) 3. Start server, login and change your gamemode ## The error in console ``` [15:48:03] [Server thread/WARN]: java.lang.RuntimeException: java.lang.ClassNotFoundException: net.minecraft.world.entity.player.NBTTagCompound [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.lambda$serialize$2(ReflectionStorage.java:185) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) [15:48:03] [Server thread/WARN]: at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [15:48:03] [Server thread/WARN]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.serialize(ReflectionStorage.java:189) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.store(ReflectionStorage.java:57) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.Inventory.save(Inventory.java:58) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.ModInventories.onSetGameMode(ModInventories.java:97) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.PlayerListener.onPlayerGameModeChange(PlayerListener.java:49) [15:48:03] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [15:48:03] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) [15:48:03] [Server thread/WARN]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [15:48:03] [Server thread/WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:568) [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:589) [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:576) [15:48:03] [Server thread/WARN]: at net.minecraft.server.level.PlayerInteractManager.setGameMode(PlayerInteractManager.java:81) [15:48:03] [Server thread/WARN]: at net.minecraft.server.level.EntityPlayer.a(EntityPlayer.java:1649) [15:48:03] [Server thread/WARN]: at net.minecraft.server.commands.CommandGamemode.a(SourceFile:59) [15:48:03] [Server thread/WARN]: at net.minecraft.server.commands.CommandGamemode.a(SourceFile:35) [15:48:03] [Server thread/WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:263) [15:48:03] [Server thread/WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:177) [15:48:03] [Server thread/WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:273) [15:48:03] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:45) [15:48:03] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [15:48:03] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchCommand(CraftServer.java:790) [15:48:03] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_17_R1.CraftServer.dispatchServerCommand(CraftServer.java:775) [15:48:03] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.handleCommandQueue(DedicatedServer.java:475) [15:48:03] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:439) [15:48:03] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1217) [15:48:03] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1050) [15:48:03] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:305) [15:48:03] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [15:48:03] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: net.minecraft.world.entity.player.NBTTagCompound [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) [15:48:03] [Server thread/WARN]: at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) [15:48:03] [Server thread/WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) [15:48:03] [Server thread/WARN]: at java.base/java.lang.Class.forName0(Native Method) [15:48:03] [Server thread/WARN]: at java.base/java.lang.Class.forName(Class.java:375) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.serializeItemStack(ReflectionStorage.java:115) [15:48:03] [Server thread/WARN]: at de.jaschastarke.minecraft.limitedcreative.inventories.store.ReflectionStorage.lambda$serialize$2(ReflectionStorage.java:183) [15:48:03] [Server thread/WARN]: ... 38 more ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ChromaGaming/LimitedCreative#6
No description provided.