ProtocolLibrary.getProtocolManager() returns null
Opened this issue ยท 2 comments
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
I have no idea, all my other plugins work fine with protocol lib, one specific one its calls to Protocollibrary are just dead, all null returns.
Expected behavior
Should return a real instance, not null
Screenshots
If applicable, add screenshots to help explain your problem.
Version Info
https://pastebin.com/a0CWUwtS
Additional context
How can I get an alive instance of protocollib? the static protocollibrary in this plugin is not loaded.
I had the exact same issue and found that I was accidentally shading ProtocolLib into my plugin. If you use the Maven shade plugin as part of your build process, make sure you specify the scope as provided
in your pom.xml
. (If you don't specify anything, it defaults to compile
)