Skip to content

Add support for Folia servers with scheduler adapter implementation#41

Open
HuynhKhanh1402 wants to merge 2 commits intoRapha149:mainfrom
HuynhKhanh1402:feat/folia-support
Open

Add support for Folia servers with scheduler adapter implementation#41
HuynhKhanh1402 wants to merge 2 commits intoRapha149:mainfrom
HuynhKhanh1402:feat/folia-support

Conversation

@HuynhKhanh1402
Copy link

@HuynhKhanh1402 HuynhKhanh1402 commented Jan 28, 2026

This pull request introduces a new scheduler abstraction layer to support both Bukkit/Paper and Folia servers seamlessly.

A new scheduler module was added, providing a SchedulerAdapter interface with separate implementations for Bukkit and Folia, selected automatically via a factory. The API now uses this adapter instead of calling the Bukkit scheduler directly, improving flexibility and future compatibility.

Additionally, synchronous handlers are now documented to run on the correct thread for the player’s region, ensuring proper behavior under Folia’s threading model.

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