WorldGuard

WorldGuard

8M Downloads

Could not pass event BlockSpreadEvent to WorldGuard

Kiomaku opened this issue ยท 1 comments

commented

WorldEdit Version

7.3.10

WorldGuard Version

7.0.13

Platform Version

1.21.3 PAPER

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of WorldGuard compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

[15:25:28] [Server thread/ERROR]: Could not pass event BlockSpreadEvent to WorldGuard v7.0.13+82fdc65
java.lang.NoClassDefFoundError: Could not initialize class com.sk89q.worldguard.bukkit.util.Materials
at worldguard-bukkit-7.0.13-dist.jar/com.sk89q.worldguard.bukkit.listener.WorldGuardBlockListener.onBlockSpread(WorldGuardBlockListener.java:553) ~[worldguard-bukkit-7.0.13-dist.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor59.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(CraftEventFactory.java:967) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(CraftEventFactory.java:951) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.world.level.block.GrowingPlantHeadBlock.randomTick(GrowingPlantHeadBlock.java:63) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.randomTick(BlockBehaviour.java:1281) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerLevel.optimiseRandomTick(ServerLevel.java:910) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerLevel.tickChunk(ServerLevel.java:973) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:610) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerChunkCache.tickChunks(ServerChunkCache.java:497) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:467) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:771) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1876) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1665) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1330) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:340) ~[paper-1.21.3.jar:1.21.3-82-5a60ffb]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchFieldError: Class org.bukkit.Material does not have member field 'org.bukkit.Material RESIN_CLUMP' [in thread "Server thread"]
at worldguard-bukkit-7.0.13-dist.jar/com.sk89q.worldguard.bukkit.util.Materials.(Materials.java:932) ~[worldguard-bukkit-7.0.13-dist.jar:?]
... 23 more

Expected Behavior

the errors are annoying i still can use plugin and i didnt realize what is not working, but in total the erors are just too much, the log size would be like 300mg after only 4 hours

Reproduction Steps

  1. install plugin worldguard
  2. install the worldedit
  3. player joins
  4. i think it try to load a chunk
  5. then the error start spamming in console

Optional WorldGuard-Report

No response

Anything Else?

No response

commented

Use a version of WG labelled to support your MC version. The one you're using is for 1.21.4