PlayerPoints icon indicating copy to clipboard operation
PlayerPoints copied to clipboard

[Feature request] Folia support

Open masmc05 opened this issue 2 years ago • 3 comments

Add support for folia

masmc05 avatar Apr 17 '23 15:04 masmc05

Here is a summary of everything made with ChatGPT to save some time:

For plugin developers, there are a few key takeaways from the given text:

Folia introduces regionised multithreading, which means that plugins will require modification to function properly. Plugin developers should expect compatibility with existing plugins to be at zero.

Folia introduces new API additions, such as the RegionisedScheduler and EntityScheduler, which can help plugins run on the correct thread context.

To ensure compatibility with Folia, plugin developers must mark their plugin as compatible by placing "folia-supported: true" in the plugin.yml file. Additionally, plugins must take advantage of the RegionisedScheduler and EntityScheduler API to ensure correct behavior.

Plugins should not assume that they can access or modify data in other regions, as Folia regions tick in parallel and do not share data. Plugin developers should take advantage of the upcoming thread-check API to ensure correct behavior.

There are currently broken API, including the scoreboard API, and planned API changes, such as super aggressive thread checks, which may impact plugin development.

Overall, plugin developers should be prepared for significant changes in their plugins to ensure compatibility with Folia. They should take advantage of the new API additions and mark their plugin as compatible to ensure correct behavior. Additionally, they should be aware of the limitations and rules of Folia's regionised multithreading to avoid bugs and errors in their plugins.

Q2297045667 avatar May 01 '23 16:05 Q2297045667

We aren't really focusing on adding Folia support right now since it's still early access and isn't really fully flushed out yet. We will probably get around to Folia support for our plugins eventually but right now it just isn't a priority

Esophose avatar May 01 '23 18:05 Esophose

We aren't really focusing on adding Folia support right now since it's still early access and isn't really fully flushed out yet. We will probably get around to Folia support for our plugins eventually but right now it just isn't a priority

There are now two libraries that support folia and bukkit calls, I don't know if they will work. 1: https://github.com/handy-git/FoliaLib 2: https://github.com/Anon8281/UniversalScheduler

HYDeath avatar Jul 03 '24 18:07 HYDeath