Skip to content

WorldEdit cannot find js.jar when running under Paper #2691

@globau

Description

@globau

WorldEdit Version

7.3.10-beta-01

Platform Version

Paper version 1.21.4-72-main@daddcf6

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit 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

When running under recent Paper versions, WorldEdit is unable to locate js.jar when it is installed in the documented location.

If js.jar is placed in either the plugins or plugins/WorldEdit directories, WorldEdit always reports that it cannot find it (worldedit.script.missing-script-engine\nworldedit.script.please-see).

strace shows that Paper's remapping is having an impact on the path WorldEdit is checking:

2043494 21:23:43 stat("/opt/clod-mc/minecraft/plugins/.paper-remapped/js.jar", 0x7f757a90cb00) = -1 ENOENT (No such file or directory)
2043494 21:23:43 stat("/opt/clod-mc/minecraft/plugins/.paper-remapped/WorldEdit/js.jar", 0x7f757a90cb00) = -1 ENOENT (No such file or directory)

These are the only two references to js.jar during startup.

Sure enough placing js.jar in plugins/.paper-remapped enables craftscript, but that's less than ideal.

Expected Behavior

craftscript should work when js.jar is installed in plugins/WorldEdit

Reproduction Steps

  1. install a recent paper version (eg. 1.21.4+)
  2. install WorldEdit and the Rhino runtime
  3. create a test craftscript
  4. try to execute the script in game

Anything Else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform:bukkit-spigot-paperSpecific to the Bukkit/Spigot/Paper platformstatus:acceptedWill be fixed / added to WorldEdit, eventuallytype:bugIncorrect behavior, not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions