Skip to content

Added bind main option to allow platforms to stop binding the main class#33

Closed
BomBardyGamer wants to merge 1 commit into
PlaceholderAPI:masterfrom
BomBardyGamer:master
Closed

Added bind main option to allow platforms to stop binding the main class#33
BomBardyGamer wants to merge 1 commit into
PlaceholderAPI:masterfrom
BomBardyGamer:master

Conversation

@BomBardyGamer
Copy link
Copy Markdown
Collaborator

This replaces the check for the platform being Platform.SPONGE, which was not scalable, as other platforms may need to disable this binding, such as Velocity and Krypton, which both also bind the main class.

I did think about just making the binding nullable, but that wouldn't work, since we need the binding for the @Data binding.
If anyone has any better ideas, feel free to suggest them.

Also, this fixes a compilation issue for Sponge that was bugging me, in that the @Plugin annotation was moved from org.spongepowered.plugin.jvm.Plugin to org.spongepowered.plugin.builtin.jvm.Plugin. Hope you don't mind that change being in this PR.

@BomBardyGamer BomBardyGamer closed this by deleting the head repository Jan 17, 2026
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