retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
536 stars 152 forks source link

The plugin cannot load properly #876

Open PixelEast opened 4 months ago

PixelEast commented 4 months ago

The plugin encountered an issue while loading I have tried the latest development version, but the problem still exists

paper1.12.2 java17

https://pastebin.com/LcGFf0f2

rafi67000 commented 3 months ago

add this --add-opens java.base/java.net=ALL-UNNAMED before -jar in your JVM flags

PixelEast commented 3 months ago

add this --add-opens java.base/java.net=ALL-UNNAMED before -jar in your JVM flags

still same issues

booky10 commented 3 months ago

https://github.com/retrooper/packetevents/blob/v2.4.0/spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java#L294 https://github.com/retrooper/packetevents/blob/v2.4.0/spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java#L346

According to your provided stacktrace, packetevents tries to lookup a class which is expected to not exist in 1.12 (net.minecraft.server.v1_12_R1.DynamicOpsNBT) - but somehow finds it


Can you reproduce this error with just packetevents installed? If I were to guess, some plugin may shade DynamicOpsNBT for whatever reason, but I'm not sure if this is the actual issue

PixelEast commented 3 months ago

https://github.com/retrooper/packetevents/blob/v2.4.0/spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java#L294 https://github.com/retrooper/packetevents/blob/v2.4.0/spigot/src/main/java/io/github/retrooper/packetevents/util/SpigotReflectionUtil.java#L346

According to your provided stacktrace, packetevents tries to lookup a class which is expected to not exist in 1.12 (net.minecraft.server.v1_12_R1.DynamicOpsNBT) - but somehow finds it

Can you reproduce this error with just packetevents installed? If I were to guess, some plugin may shade DynamicOpsNBT for whatever reason, but I'm not sure if this is the actual issue

Okay, I'll give it a try when I have time