IntellectualSites / IntellectualSites/FastAsyncWorldEdit

Unable to use wand command

Open
#3,427 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Spigot
Dominant language
Java
Stars
806
Forks
394
Avg merge
22h 19m
Merged PRs (30d)
14

Description

Server Implementation

Spigot

Server Version

1.21.11

Describe the bug

When you run the //wand command it gives a wand but the wand does not work and fawe seems to become "unresponsive"

To Reproduce
  1. Install on 1.21.11 spigot server
  2. run //wand in game
  3. Error
Expected behaviour

Should run with no issues and give a selection wand

Screenshots / Videos

https://gyazo.com/dca9904322931e38cc07db5011aa886f

Error log (if applicable)

[18:25:09] [Server thread/INFO]: CamoHax issued server command: //wand
[18:25:09] [Craft Scheduler Thread - 2/ERROR]: An unexpected error while handling a FastAsyncWorldEdit command
java.lang.NoClassDefFoundError: Could not initialize class com.sk89q.worldedit.world.block.BlockTypes
at com.sk89q.worldedit.world.item.ItemType.getBlockType(ItemType.java:131)
at com.sk89q.worldedit.world.item.ItemType.hasBlockType(ItemType.java:119)
at com.sk89q.worldedit.LocalSession.setTool(LocalSession.java:1359)
at com.sk89q.worldedit.command.SelectionCommands.wand(SelectionCommands.java:357)
at com.sk89q.worldedit.command.SelectionCommandsRegistration.cmd$_wand(SelectionCommandsRegistration.java:425)
at org.enginehub.piston.CommandManager.execute(CommandManager.java:157)
at com.sk89q.worldedit.extension.platform.PlatformCommandManager.lambda$handleCommandOnCurrentThread$16(PlatformCommandManager.java:712)
at com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommandTask(PlatformCommandManager.java:733)
at com.sk89q.worldedit.extension.platform.PlatformCommandManager.handleCommandOnCurrentThread(PlatformCommandManager.java:714)
at com.sk89q.worldedit.extension.platform.PlatformCommandManager.lambda$handleCommand$13(PlatformCommandManager.java:677)
at org.bukkit.craftbukkit.v1_21_R7.scheduler.CraftTask.run(CraftTask.java:82)
at org.bukkit.craftbukkit.v1_21_R7.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.ExceptionInInitializerError [in thread "Server thread"]
at com.sk89q.worldedit.world.block.BlockTypes.init(BlockTypes.java:2406)
at com.sk89q.worldedit.world.block.BlockTypes.(BlockTypes.java:48)
at com.sk89q.worldedit.world.block.BlockState.get(BlockState.java:156)
at com.sk89q.worldedit.world.block.BlockState.get(BlockState.java:132)
at com.sk89q.worldedit.world.registry.LegacyMapper.loadFromResource(LegacyMapper.java:124)
at com.sk89q.worldedit.world.registry.LegacyMapper.(LegacyMapper.java:84)
at com.sk89q.worldedit.world.registry.LegacyMapper.getInstance(LegacyMapper.java:329)
at com.sk89q.worldedit.WorldEdit.loadMappings(WorldEdit.java:428)
at com.sk89q.worldedit.bukkit.WorldEditPlugin.setupPreWorldData(WorldEditPlugin.java:294)
at com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable(WorldEditPlugin.java:264)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:267)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:492)
at org.bukkit.craftbukkit.v1_21_R7.CraftServer.enablePlugin(CraftServer.java:581)
at org.bukkit.craftbukkit.v1_21_R7.CraftServer.enablePlugins(CraftServer.java:495)
at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:335)
at net.minecraft.server.MinecraftServer.A(MinecraftServer.java:1065)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:340)
... 1 more

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/da9f0cea9c104250a1cfedf670df8573

Are you interested in contributing a fix?

No

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on a Spigot 1.21.11 server with //wand, then start from BlockTypes.init and the LegacyMapper.loadFromResource stack-trace entries. Confirm the fix by verifying plugin startup completes without the NoClassDefFoundError and //wand provides a working selection wand.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.