Skip to content

Fix: Vault Dependency Isolation & Java 21 Support#9

Open
liquidman228 wants to merge 8 commits into
alexdev03:masterfrom
liquidman228:master
Open

Fix: Vault Dependency Isolation & Java 21 Support#9
liquidman228 wants to merge 8 commits into
alexdev03:masterfrom
liquidman228:master

Conversation

@liquidman228
Copy link
Copy Markdown

Summary of changes

  1. Vault Dependency Isolation:

    • Isolated net.milkbowl.vault.permission.Permission usage into a separate provider.
    • Introduced IVaultProvider interface to decouple dependencies.
    • Implemented lazy initialization for VaultSupport. This prevents NoClassDefFoundError when Vault is not present on the server.
  2. Java 21 & Paper 1.21.4 Support:

    • Updated build.gradle to use the maintained io.github.goooler.shadow fork (v8.1.8) because the original shadow plugin is incompatible with Java 21/ASM 9.6+.
    • Added Java 21 toolchain configuration.
  3. Code Quality:

    • Added missing OfflinePlayer imports.
    • Refactored Placeholders.java to safely use the new getGroup() helper, preventing potential NPEs.

This allows the expansion to load correctly on Minecraft 1.21.4+ even if Vault is missing or loaded late.

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