Skip to content

Fix Folia support detection for paper plugins#72

Open
twisti-dev wants to merge 1 commit into
MultiPaper:ver/26.2from
SLNE-Development:fix/is-folia-supported-check
Open

Fix Folia support detection for paper plugins#72
twisti-dev wants to merge 1 commit into
MultiPaper:ver/26.2from
SLNE-Development:fix/is-folia-supported-check

Conversation

@twisti-dev

Copy link
Copy Markdown

Previously, plugins using the new paper-plugin.yml format were not detected as Folia-compatible, even when they explicitly declared Folia support.

This caused those plugins to be treated as unsupported and potentially forced into synchronous execution.

This PR fixes the detection by exposing isFoliaSupported() through PluginMeta and using the plugin metadata directly when checking whether a plugin supports Folia. It also forwards the folia-supported value from PaperPluginMeta into the generated PluginDescriptionFile, keeping support checks consistent for both legacy and modern plugin metadata.

- introduce foliaSupported boolean in PaperPluginMeta
- update PluginDescriptionFile constructor to accept foliaSupported parameter
- modify PaperPluginClassLoader to utilize foliaSupported for plugin loading
- implement isFoliaSupported method in PluginMeta interface
- adjust SynchronousPluginExecution to check folia support from PluginMeta
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