ProtocolLib

3M Downloads

java.lang.NoSuchMethodException

flaxeneel2 opened this issue ยท 2 comments

commented

Describe the bug
The plugin errors (for no apparent reason) whenever the first player joins

To Reproduce
Steps to reproduce the behavior:

  1. Use Ziggurat in your plugin

Expected behavior
It should not error

Screenshots
image

Version Info
https://haste.flaxeneel2.net/iYORtmbJ5CktFjxSvrSQMi8eplnb1FIDXuLZcRv33r8GV5B7Gh.properties

Additional context
I did try editing the ziggurat src to try and catch the error, but it failed. I also looked at the plugin structure and as far as I can tell, none of the protocolLib was packed into the jar (like the common-errors page suggested it might be)
image
The line that is causing the error:

PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.PLAYER_INFO);
...
packet.getPlayerInfoDataLists().write(0, Collections.singletonList(playerInfoData));

However, the code does work perfectly (The tab is shown properly). This is the only error i get, and no matter what I do I can't seem to get rid of it.

The code works perfectly so this is all i need to somehow solve

commented

Try this: https://ci.dmulloy2.net/job/ProtocolLib/533/

That one works, thank you.