Skip to content

Conversation

@Kowagirl
Copy link
Contributor

This splits the plugin's onLoad and onEnable between two separate ProxyInitializeEvent handlers.

onLoad is called on PostOrder.EARLY, with onEnable called on PostOrder.LATE.

This allows other plugins using the API to register variables on their initialization with the default order. At the moment, it is not possible to register variables cleanly as it will either error if done before BTLP is initialized, or BTLP will throw a warning when loading the tab list using the variable if done after. This fix replicates the order of operations that was done by registering variables in onLoad in plugins using this API.

@CodeCrafter47 CodeCrafter47 merged commit 36f94e7 into CodeCrafter47:master Mar 25, 2025
1 check 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