-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listening for custom payload packets does not work on protocollib 1.20.2 #2561
Comments
Perhaps this issue is related to my issue: #2552 |
I fixed it by using packet events, doesn't seem like there will be a fix anytime soon, since no plib update since sept 23 |
Thanks for your reply! |
I meant the packet events plugin, but I have had to switch back to protocollib due to packet events causing issues with tab complete, using your patch I can get custom payload packets but the packet types for them is wonky (meaning I cant check if event.getPacketType() == PacketType.Play.Client.CUSTOM_PAYLOAD etc) PacketType.Play.Client.CUSTOM_PAYLOAD, PacketType.Login.Client.CUSTOM_PAYLOAD, PacketType.Configuration.Client.CUSTOM_PAYLOAD, System.out.println("type: " + event.getPacketType().toString()); [10:26:27 INFO]: [STDOUT] type: null[class=ServerboundCustomPayloadPacket, id=1] i am having to use if (event.getPacketType().getPacketClass().getSimpleName().equals("ServerboundCustomPayloadPacket")) { |
Describe the bug
Listening for custom payload packets does not work on protocollib 1.20.2
To Reproduce
Make a packet listener for custom payload
Expected behavior
Should detect it from player, doesnt.
Screenshots
If applicable, add screenshots to help explain your problem.
Version Info
5.1.1-SNAPSHOT-669
The text was updated successfully, but these errors were encountered: