Tag.ITEMS_SKULLS stacktrace
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
Research direction
The trace points to Materials.isArmor in Materials.java:1478, called by BlacklistListener.onUseItem at BlacklistListener.java:231. Start by checking how the Bukkit Tag.ITEMS_SKULLS reference is used and compare it with the API available on the reported platform. Done means placing a block with an item in the WorldGuard blacklist no longer produces this stacktrace.
Written by the indexing model from the issue text.
Description
WorldEdit Version
Bukkit-Official(7.4.7-SNAPSHOT+7722-349ea51)
WorldGuard Version
Bukkit-Official (7.0.22-SNAPSHOT+2428-59e136a)
Platform Version
4664-Spigot-bed90fc-e89124d (MC: 26.3) (Implementing API version 26.3-R0.1-SNAPSHOT)
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
Materials.isArmor() in UseItemEvent due to Tag.ITEMS_SKULLS
[14:12:23] [Server thread/ERROR]: Could not pass event UseItemEvent to WorldGuard v7.0.22-SNAPSHOT+2428-59e136a
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:601)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:588)
at com.sk89q.worldguard.bukkit.util.Events.fireToCancel(Events.java:74)
at com.sk89q.worldguard.bukkit.listener.EventAbstractionListener.onBlockPlace(EventAbstractionListener.java:255)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:601)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:588)
at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:448)
at net.minecraft.world.item.ItemStack.useOn(ItemStack.java:463)
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:661)
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1976)
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:28)
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:13)
at net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:58)
at net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:42)
at net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1440)
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1129)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:351)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.lang.NoSuchFieldError: Class org.bukkit.Tag does not have member field 'org.bukkit.Tag ITEMS_SKULLS'
at com.sk89q.worldguard.bukkit.util.Materials.isArmor(Materials.java:1478)
at com.sk89q.worldguard.bukkit.listener.BlacklistListener.onUseItem(BlacklistListener.java:231)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
... 23 more
Expected Behavior
No stacktrace when blocks are placed.
Reproduction Steps
- Include items in WorldGuard blacklist
- Place block
Optional WorldGuard-Report
No response
Anything Else?
No response
- Dominant language
- Java
- Stars
- 944
- Forks
- 686
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EngineHub/WorldGuard
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EngineHub/WorldGuard#2334 ·
-
status:invalid type:bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
EngineHub/WorldGuard#2333 · 1 comment · 1 reaction ·
-
End Crystal explosion gets fully cancelled even if a small part of the explosion affects a protected areaPossibly taken @Almost10 claimed this 18 days ago. Openstatus:pending type:bug
Difficulty 3/5 Half a day Newbie friendliness 62/100
EngineHub/WorldGuard#2323 · 4 comments ·
-
status:pending type:feature-request
Difficulty 3/5 1-2 days Newbie friendliness 54/100
EngineHub/WorldGuard#2320 ·
-
status:upstream type:bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
EngineHub/WorldGuard#2314 · 6 comments ·
All issues in EngineHub/WorldGuard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
RegistryExceptionHandler uses self-referencing basePackageClasses instead of a controller classOpenbug finsim-registry good-first-issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
status:pending type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug level:trivial
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
exoego/keycloak-fuhito#666 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
hammy275/immersive-mc#669 ·