Skip to content

Add Folia support - #53

Closed
tdaue wants to merge 1 commit into
MrMarL:mainfrom
tdaue:folia-support
Closed

tdaue wants to merge 1 commit into
MrMarL:mainfrom
tdaue:folia-support

Conversation

@tdaue

@tdaue tdaue commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Route all scheduling through a small Bukkit/Folia bridge (oneblock.utils.Scheduler) that detects Folia at runtime and uses its global, region, entity and async schedulers via reflection, so the plugin still compiles against the Spigot API and runs on Java 8 / legacy servers with unchanged behavior.

  • Repeating tasks: block generation runs per player on the entity thread, then on the island's region thread; particles spawn on the island's region thread
  • Teleports use teleportAsync on Folia
  • /ob join builds the island on its region thread before teleporting the player
  • Island set/clear/scan and member kicks run on the owning region/entity thread
  • Console commands from rewards and command blocks run on the global thread
  • plugin.yml: folia-supported: true

Route all scheduling through a small Bukkit/Folia bridge (oneblock.utils.Scheduler)
that detects Folia at runtime and uses its global, region, entity and async
schedulers via reflection, so the plugin still compiles against the Spigot API
and runs on Java 8 / legacy servers with unchanged behavior.

- Repeating tasks: block generation runs per player on the entity thread, then
  on the island's region thread; particles spawn on the island's region thread
- Teleports use teleportAsync on Folia
- /ob join builds the island on its region thread before teleporting the player
- Island set/clear/scan and member kicks run on the owning region/entity thread
- Console commands from rewards and command blocks run on the global thread
- plugin.yml: folia-supported: true

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrMarL

MrMarL commented Nov 2, 2026

Copy link
Copy Markdown
Owner

why hack?
just import maven dependency

@MrMarL

MrMarL commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Added support for Folia without reflection in 1.6.4.

@MrMarL MrMarL closed this Nov 3, 2026
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