ProtocolLib

3M Downloads

noClassDefError

lavaking46 opened this issue · 4 comments

commented
  • [✔️ ] This issue is not solved in a development build

Describe the bug
I'm trying to use protocolLib so that I can use packets to hide player armor. When I load my plugin(1.19) it gives a noClassDefError for PacketListener.

To Reproduce
Steps to reproduce the behavior:
Create simple plugin with something like this in your onEnable method

        ProtocolManager manager = ProtocolLibrary.getProtocolManager();
        manager.addPacketListener(new PacketAdapter(this, ListenerPriority.NORMAL, PacketType.Play.Server.ENTITY_EQUIPMENT) {
            @Override
            public void onPacketSending(PacketEvent event) {
                if (equipmentPacketProcessor == null) return;
                equipmentPacketProcessor.process(event);
            }
        });

Expected behavior
I expected to add a new packetlistener that would allow me to listen for packets that I would then overwrite.

Version Info
https://pastebin.com/p0t8Jw0i

commented

You need to add a depend on ProtocolLib in your plugin.yml.

commented

I Already did

commented

The error is still the same after having ProtocolLib listed as a dependency

commented

Sorry to try and continue bumping this and such but I'm still having this issue after having added the plugin as a dependency in my plugin.yml and their has been no updates.