ProtocolLib

3M Downloads

NoClasDefFoundException for Adventure component conversion

Andre601 opened this issue ยท 4 comments

commented
  • This issue is not solved in a development build

Describe the bug
This has originally been reported here, but from what I can tell is this an issue regarding a missing class within ProtocolLib for one of the dependencies (Kyori Adventure).

The full stacktrace reads as follows: https://paste.helpch.at/ababezitoh.php

My plugin uses ProtocolLib's AdventureComponentConverter.fromComponent(...) to alter the MOTD of a server's multiplayer list entry (See here).

This seems to have worked a few weeks earlier, but now is having this issues. Maybe dependency has changed? Outdated dependency (On either side)?

To Reproduce
Steps to reproduce the behavior:

I didn't encounter this issue myself, so I cannot provide actual reproduction steps. The above linked issue contains useful information regarding server version, type and build.

Expected behavior
Plugin should work fine with ProtocolLib on a 1.19.4 Spigot server.

Screenshots

Version Info
https://pastebin.com/sMwHar9z

Additional context

commented

Seems like adventure is missing. ProtocolLib doesn't contain it, we just support using it (typically in Paper)

commented

Just linking this here, as it could be related to this issue: PaperMC/Paper#9114

commented

The issue is still present. And I doubt it's caused by my plugin as I use the Spigot Lib loader to load the necessary adventure libraries on startup.
And on Paper is this plugin not even used, so this is specifically on Spigot itself with ProtocolLib.

And as I pointed out before did this only start happening more recently because it worked in the past without any issues.

commented

I figured it out and applied a simple fix. Sorry to waste your time with this.