turikhay / MapModCompanion

Map mod support. Plugin that fixes Multi-world detection. Xaero's Minimap, VoxelMap and JourneyMap will be able to identify worlds on BungeeCord/Velocity servers.
MIT License
39 stars 4 forks source link

Folia support #72

Closed turikhay closed 10 months ago

turikhay commented 10 months ago

Folia is a new fork of Paper that adds regionized multithreading to the server.

only plugins that have been explicitly marked by the author(s) to work with Folia will be loaded. By placing "folia-supported: true" into the plugin's plugin.yml, plugin authors can mark their plugin as compatible with regionised multithreading.

[1] (from "The new rules" section)

turikhay commented 10 months ago

We don't rely on entities, chunks or basically anything that would require us to use single-thread Bukkit scheduler. That's why enabling Folia support may be as easy as simply marking our plugin as folia-supported: true.

But Folia isn't stable yet, and we don't even have publicly available builds of it (thus, no E2E tests yet).

turikhay commented 10 months ago

I've created folia branch for those interested in this. Download the build here: gradle-build.zip.

It worked, but required the following changes in the code: