API reference not being set properly?
Crypnotic opened this issue ยท 4 comments
Description
Api seems to never be enabled on newer versions. Confirmed all interactions with the LuckPerms api take place after onEnable, along with making sure the plugin.yml specifies a dependency on LuckPerms. The same code has been used since 5.2.xx and has never had an issue.
Reproduction steps
- Place LuckPerms dependency in plugin.yml
- Attempt to build a MetaNode onEnable
Expected behaviour
Documentation states that the api should be available to access onEnable.
Environment details
- Server type/version:
Paper
running version1.17
build79
- Server type/version:
Airplane
running version1.17
build40
- LuckPerms version:
v5.3.50
https://gist.github.com/Crypnotic/9a4333e5480663e72118f2b78828a37b
Any other relevant details
Make sure you are not shading the API and the dependency is declared as compileOnly (if you're using gradle) or scope provided (if you're using maven)