Skip to content

Add support for Folia servers with scheduler adapter implementation#41

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

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

Conversation

@hqkh4nh
Copy link
Copy Markdown

@hqkh4nh hqkh4nh 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