Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add Folia Support #109

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

adabugra
Copy link
Contributor

Adds support for Paper's multithreading Folia project.

Code has been tested with Paper 1.21.1 and Folia 1.21.1

@poyrazinan
Copy link
Member

I don't know what is Folio.

So you should explain the Folio to me. I have issues about is Native Spigot works with that code?

@adabugra
Copy link
Contributor Author

I don't know what is Folio.

So you should explain the Folio to me. I have issues about is Native Spigot works with that code?

Folia is Fork of Paper which adds regionised multithreading to the dedicated server. It was developed by Paper dev Spottedleaf. Its multi threaded so it can handle large player counts (like 2000 players) on one server.

To make plugins compatible with it, you need to use Folia's schedulers (GlobalRegionalScheduler, EntityScheduler, RegionScheduler, AsyncScheduler) instead of BukkitScheduler or BukkitRunnable.

I used MorePaperLib so with this code plugin works on Native Spigot/Paper and Folia without issues.

For more information, you can check Folia's README: Folia on GitHub

@poyrazinan
Copy link
Member

@adabugra Could i request to take the jar which supports Folia?

@adabugra
Copy link
Contributor Author

adabugra commented Dec 3, 2024

@adabugra Could i request to take the jar which supports Folia?

Farmer-v6-b108.zip

@adabugra adabugra changed the title Folia support Feature: Add Folia Support Dec 21, 2024
@adabugra
Copy link
Contributor Author

@poyrazinan

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