Skip to content

Conversation

@Aelshi-nui
Copy link

This PR changes how the scheduler works so that it is safe on Folia while keeping the same behavior on Paper. Changes:

  • Added a scheduler adapter so that Folia and Paper can work together
  • Replaced global schedulers with Folia-safe ones
  • No changes in behavior or configuration Successfully tested on latest Paper and Folia.

@Aelshi-nui
Copy link
Author

I’ve tested this on my public server with real player activity. Everything is working as expected on Paper, Folia, Spigot, and Bukkit, with no regressions observed.

@sulphi-fox
Copy link
Owner

Thanks for this - I'll look through it in my IDE soon; just wondering if this is possible to do without reflection? i.e., can you add Folia / Paper as a dependency and initialise a different wrapper based on the server environment?

@Aelshi-nui
Copy link
Author

Aelshi-nui commented Feb 6, 2026 via email

@sulphi-fox
Copy link
Owner

Just to add: I’ve tested this on a Spigot server as well, and it loads and behaves correctly there without requiring any Paper or Folia dependencies. If you notice any issues when testing on Spigot on your side, I’m happy to adjust the implementation.

I understand that it might work without any additional dependencies being declared, but I'd like to avoid reflection if it's possible. If you can adjust the implementation to not use reflection that would be grand 😄

@Aelshi-nui
Copy link
Author

Aelshi-nui commented Feb 7, 2026 via email

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