Skip to content

fix(hooks): gracefully handle missing WorldEdit classes and fix Paper classpath - #362

Open
RevAnjay wants to merge 2 commits into
OpenVdra:mainfrom
RevAnjay:main
Open

RevAnjay wants to merge 2 commits into
OpenVdra:mainfrom
RevAnjay:main

Conversation

@RevAnjay

@RevAnjay RevAnjay commented Nov 7, 2026

Copy link
Copy Markdown

Description

Fixes a startup crash (NoClassDefFoundError: com/sk89q/worldedit/extent/Extent) on Paper when WorldGuard or a compatible alternative (like uWorldGuard) is installed without WorldEdit, or when WorldEdit classes are isolated by Paper's classloader.

Changes

  • Add WorldEdit and FastAsyncWorldEdit to paper-plugin.yml (join-classpath: true) and plugin.yml (softdepend).
  • Catch Throwable in IntegrationManager#checkPlugin so missing dependency classes disable the hook gracefully instead of crashing onEnable.
  • Add defensive try-catch in WorldGuard.java.
  • Add unit tests in IntegrationManagerTest.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant