EngineHub / WorldGuard

🛡️ Protect your Minecraft server and lets players claim areas
https://enginehub.org/worldguard/
Other
820 stars 541 forks source link

Console spamming "Could not pass event UseBlockEvent to WorldGuard v7.0.10+d9424b1" ever since updating to 1.21 #2117

Closed FlyingGMM closed 2 months ago

FlyingGMM commented 2 months ago

WorldEdit Version

7.3.5

WorldGuard Version

7.0.10-dist

Platform Version

Purpur 1.21-2275-82ccc76

Confirmations

Bug Description

Ever since updating to 1.21 a few minutes ago, console has been spamming the following error message, even with no one online:

Could not pass event UseBlockEvent to WorldGuard v7.0.10+d9424b1
java.lang.NoClassDefFoundError: Could not initialize class com.sk89q.worldguard.bukkit.util.Materials
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.listener.RegionProtectionListener.lambda$onUseBlock$2(RegionProtectionListener.java:256)
    at com.google.common.base.Predicate.test(Predicate.java:79)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.event.block.AbstractBlockEvent.filterInternal(AbstractBlockEvent.java:132)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.event.block.AbstractBlockEvent.filter(AbstractBlockEvent.java:124)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.event.block.UseBlockEvent.filter(UseBlockEvent.java:39)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.event.block.AbstractBlockEvent.filter(AbstractBlockEvent.java:160)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.event.block.UseBlockEvent.filter(UseBlockEvent.java:39)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.listener.RegionProtectionListener.onUseBlock(RegionProtectionListener.java:251)
    at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor119.execute(Unknown Source)
    at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
    at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
    at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
    at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628)
    at worldguard-bukkit-7.0.10-dist.jar//com.sk89q.worldguard.bukkit.util.Events.fireAndTestCancel(Events.java:60)
    at worldguard-bukkit-7.0.10-dist.jar//com.

Expected Behavior

WorldGuard is expected to not do this, I think. It would be nice to solve the underlying issue though.

Reproduction Steps

  1. Update to 1.21
  2. Check console

Optional WorldGuard-Report

No response

Anything Else?

No response

me4502 commented 2 months ago

Don’t lie on the issue template, use the right version

FlyingGMM commented 2 months ago

The right version of what? This is what it told me for the version of each program.

Tizooo commented 1 month ago

same issue here image