When a player logs into the server, I see this error in the console:
Minecraft version 1.20.1.
Could not pass event PlayerJoinEvent to TradeSystem v2.3.1
java.lang.IllegalArgumentException: Can not set final net.minecraft.network.NetworkManager field net.minecraft.server.network.PlayerConnection.h to org.apache.logging.slf4j.Log4jLogger
at jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167) ~[?:?]
at jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171) ~[?:?]
at jdk.internal.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:58) ~[?:?]
at jdk.internal.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java:38) ~[?:?]
at java.lang.reflect.Field.get(Field.java:425) ~[?:?]
at de.codingair.tradesystem.lib.codingapi.server.reflections.IReflection$5.get(IReflection.java:237) ~[TradeSystem_v2.3.1.jar:?]
at de.codingair.tradesystem.lib.codingapi.player.data.PacketReader.modify(PacketReader.java:117) ~[TradeSystem_v2.3.1.jar:?]
at de.codingair.tradesystem.lib.codingapi.player.data.PacketReader.inject(PacketReader.java:63) ~[TradeSystem_v2.3.1.jar:?]
at de.codingair.tradesystem.lib.codingapi.server.listeners.PickItemListener.onJoin(PickItemListener.java:83) ~[TradeSystem_v2.3.1.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor140.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:git-Purpur-1995]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.1.jar:git-Purpur-1995]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.1.jar:git-Purpur-1995]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:339) ~[purpur-1.20.1.jar:git-Purpur-1995]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.placeNewPlayer(ServerLoginPacketListenerImpl.java:202) ~[?:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.handleAcceptedLogin(ServerLoginPacketListenerImpl.java:183) ~[?:?]
at net.minecraft.server.network.ServerLoginPacketListenerImpl.tick(ServerLoginPacketListenerImpl.java:85) ~[?:?]
at net.minecraft.network.Connection.tick(Connection.java:608) ~[?:?]
at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:234) ~[?:?]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1602) ~[purpur-1.20.1.jar:git-Purpur-1995]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:487) ~[purpur-1.20.1.jar:git-Purpur-1995]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1421) ~[purpur-1.20.1.jar:git-Purpur-1995]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1192) ~[purpur-1.20.1.jar:git-Purpur-1995]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.1.jar:git-Purpur-1995]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
To Reproduce
Steps to reproduce the behavior:
Login in to the server
see console
Expected behavior
No error.
When a player logs into the server, I see this error in the console:
Minecraft version 1.20.1.
To Reproduce Steps to reproduce the behavior:
Login in to the server see console Expected behavior No error.
Screenshots n/a
Additional context Console log: https://mclo.gs/62p0OvP
Discord contact: alex.rahvalov