Skip to content

Add Folia support with Bukkit/Paper fallback#1

Open
atii3343 wants to merge 1 commit into
branduzzo:mainfrom
atii3343:main
Open

Add Folia support with Bukkit/Paper fallback#1
atii3343 wants to merge 1 commit into
branduzzo:mainfrom
atii3343:main

Conversation

@atii3343

Copy link
Copy Markdown

Detect Folia at runtime (via the RegionizedServer class) and route scheduler calls through Folia's global / region / entity schedulers when present, falling back to BukkitScheduler on Paper and Spigot.

  • New FoliaScheduler utility (reflection-based, no Folia compile dep)
  • New WrappedTask abstraction over BukkitTask / ScheduledTask
  • Block work scheduled at the sign location, packet/entity work at the target's entity scheduler, console dispatches on the global region scheduler
  • plugin.yml advertises folia-supported: true

Detect Folia at runtime (via the RegionizedServer class) and route
scheduler calls through Folia's global / region / entity schedulers
when present, falling back to BukkitScheduler on Paper and Spigot.

- New FoliaScheduler utility (reflection-based, no Folia compile dep)
- New WrappedTask abstraction over BukkitTask / ScheduledTask
- Block work scheduled at the sign location, packet/entity work at
  the target's entity scheduler, console dispatches on the global
  region scheduler
- plugin.yml advertises folia-supported: true
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