Skip to content

Feature/player boost stats#45

Merged
ez-plugins merged 4 commits into
mainfrom
feature/player-boost-stats
May 18, 2026
Merged

Feature/player boost stats#45
ez-plugins merged 4 commits into
mainfrom
feature/player-boost-stats

Conversation

@ez-plugins
Copy link
Copy Markdown
Owner

No description provided.

On standard Paper, the JVM resolves the ScheduledTask type when
loading AdminGuiChatListener (it appears as a synthetic method
parameter from the compiled lambda 't -> processInput(...)').
Since ScheduledTask is Folia-only, Paper could not load the class
and Bukkit's event registration failed with:

  failed to register events for AdminGuiChatListener because
  io/papermc/paper/threadedregions/scheduler/ScheduledTask does not exist

Fix: replace the inline player.getScheduler().run(...) call with
FoliaScheduler.runEntityTask(), which already contains the Folia
reference in its own class so the JVM only resolves ScheduledTask
when that method is actually executed on a Folia server.

This also fixes a latent thread-safety issue: processInput() accesses
the player's PersistentDataContainer, which must be done on the main
thread (Paper) or entity region thread (Folia). The previous Paper
branch called processInput directly on the async chat thread.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 18, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 90.74074% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...va/com/skyblockexp/ezboost/boost/BoostManager.java 0.00% 1 Missing ⚠️
...om/skyblockexp/ezboost/command/EzBoostCommand.java 96.66% 0 Missing and 1 partial ⚠️
...skyblockexp/ezboost/gui/admin/AdminGuiPreview.java 0.00% 1 Missing ⚠️
...blockexp/ezboost/gui/admin/PermissionInputGui.java 0.00% 1 Missing ⚠️
...lockexp/ezboost/listener/AdminGuiChatListener.java 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ez-plugins ez-plugins merged commit 6625183 into main May 18, 2026
9 checks passed
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