ProtocolLib

3M Downloads

ProtocolManager is null

HubiSm4 opened this issue ยท 1 comments

commented

I want to send silent packet using ProtocolLib, but console throws an exception: Cannot invoke "com.comphenix.protocol.ProtocolManager.sendServerPacket(org.bukkit.entity.Player, com.comphenix.protocol.events.PacketContainer, boolean)" because "protocolManager" is null

Im getting manager like this:
image

I tried to use api version 4.8.0 and dev build 5.0.0, nothing worked

Anyone know how to fix it?

commented

Define your ProtocolManager in OnEnable()