Skip to content

feat: migrate to Folia via FoliaLib#36

Open
bytezlol wants to merge 1 commit into
HelpChat:masterfrom
bytezlol:master
Open

feat: migrate to Folia via FoliaLib#36
bytezlol wants to merge 1 commit into
HelpChat:masterfrom
bytezlol:master

Conversation

@bytezlol
Copy link
Copy Markdown

  • Add FoliaLib 0.5.1 dependency and shadow relocation
  • Replace BukkitScheduler with FoliaLib scheduler across the plugin
    • DeluxeTags: runTaskTimerAsynchronously -> runTimerAsync, cleanupTask field BukkitTask -> WrappedTask
    • CleanupTask: runTask -> runNextTick
    • UpdateChecker: runTaskAsynchronously -> runAsync, runTask callback -> runNextTick
  • Expose FoliaLib instance via getFoliaLib() and cancel all tasks on disable
  • UpdateChecker constructor now takes DeluxeTags instead of Plugin
  • Mark plugin as folia-supported in plugin.yml

- Add FoliaLib 0.5.1 dependency and shadow relocation
- Replace BukkitScheduler with FoliaLib scheduler across the plugin
  - DeluxeTags: runTaskTimerAsynchronously -> runTimerAsync, cleanupTask field BukkitTask -> WrappedTask
  - CleanupTask: runTask -> runNextTick
  - UpdateChecker: runTaskAsynchronously -> runAsync, runTask callback -> runNextTick
- Expose FoliaLib instance via getFoliaLib() and cancel all tasks on disable
- UpdateChecker constructor now takes DeluxeTags instead of Plugin
- Mark plugin as folia-supported in plugin.yml
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