CraftBook 5 cannot reload with WorldEdit 7.4.7-SNAPSHOT because the command parser changed

Open Beginner friendly
#1,388 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
api, backend

Research direction

Start in craftbook-core/src/main/java/org/enginehub/craftbook/PlatformCommandManager.java at the command dispatch call on lines 111–113, then read the WorldEdit parser change linked in the issue to identify the replacement entry point. Update the call to match WorldEdit 7.4.7-SNAPSHOT and verify that craftbook reload reaches the reload handler and reports its result.

Written by the indexing model from the issue text.

Description

status:pending type:bug
CraftBook Version

5.0.0-SNAPSHOT+49338eb38 (five branch)

Platform Version

Paper 26.3 (build 248 when the command failed; build 257 API in the isolated compatibility check)

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 CraftBook 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

Running craftbook reload from the console fails before CraftBook reaches its reload handler. The console reports this error with WorldEdit 7.4.7-SNAPSHOT:

java.lang.NoSuchMethodError: 'com.sk89q.worldedit.internal.command.CommandArgParser com.sk89q.worldedit.internal.command.CommandArgParser.forArgString(java.lang.String)'
Expected Behavior

CraftBook should parse the command, reload its configuration, and report the result to the console.

Reproduction Steps
  1. Start Paper 26.3 with CraftBook 5.0.0-SNAPSHOT+49338eb38 and EngineHub WorldEdit 7.4.7-SNAPSHOT. The command failure was observed with WorldEdit revision 2ddf41e36.
  2. Run craftbook reload in the server console.
  3. The console reports NoSuchMethodError before the configuration reload starts.
Anything Else?

CraftBook’s command dispatcher still calls CommandArgParser.forArgString(String). WorldEdit’s parser change replaced that entry point. An isolated Java check against WorldEdit 7.4.7-SNAPSHOT+349ea5155 produced the same NoSuchMethodError for that call.

Dominant language
Java
Stars
323
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from EngineHub/CraftBook

All issues in EngineHub/CraftBook

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.