Skip to content

Added Folia Support. - #947

Open
KeyHeld wants to merge 3 commits into
MilkBowl:masterfrom
KeyHeld:folia
Open

Added Folia Support.#947
KeyHeld wants to merge 3 commits into
MilkBowl:masterfrom
KeyHeld:folia

Conversation

@KeyHeld

@KeyHeld KeyHeld commented Jul 8, 2026

Copy link
Copy Markdown

Added Folia Support.

KeyHeld added 3 commits July 7, 2026 09:03
- Add FoliaUtil.isFolia() detection via RegionizedServer class check
- Replace Bukkit.getScheduler() calls with Folia-safe equivalents
- Add dev.folia:folia-api dependency to pom.xml (provided scope)
- Add folia-supported: true to plugin.yml
@Smorki

Smorki commented Aug 12, 2026

Copy link
Copy Markdown

Just a few things that caught my eye:

Hardcoded API Version: The pom.xml pins folia-api to 1.20.1-R0.1-SNAPSHOT, which might cause issues since Vault needs to support multiple versions.

Class Loading Check: Using Class.forName inside FoliaUtil throws a ClassNotFoundException on standard servers, which isn't ideal for performance.

Scheduler Logic: The manual if (FoliaUtil.isFolia()) checks scattered around Vault.java feel a bit messy. Usually, something like FoliaLib or a cleaner wrapper makes this much easier to maintain.

Might need a bit of refactoring before it's good to go. What do you think?

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.

2 participants