Closed Rubenicos closed 3 weeks ago
Still investigating, but might be related: https://github.com/saicone/OneTimePack/issues/6
After some testing I found that the error is when I try to write a packet. https://github.com/saicone/OneTimePack/blob/36370092970d467afb252214a339a28583b439dc/module/module-packetevents/src/main/java/com/saicone/onetimepack/core/PacketEventsProcessor.java#L87
I try to send that packet to the downstream server where the player is connected, I'm making it wrong?
Of course, you should read the issue I created saicone/OneTimePack#6
I actually read it, after applying the changes I found that the problem comes when I try to write a packet as I mentioned above
Well, at least respond to the issue created on your project. Please make the changes so I can see your current progress and tell you what more to fix.
Done, I also changed to receivePacket
(to send a packet to downstream server as if it from player) but there is a new error
Using #receivePacket()
on Bungeecord
Using #receivePacketSilently()
on Bungeecord
Using #receivePacket()
and #receivePacketSilently()
on Velocity
[11:23:44 INFO]: [connected player] Rubenicos (/...) has disconnected: An internal error occurred in your connection.
Same problem
If you follow the issue created on his project, he managed to fix it.
Describe the bug I made a plugin that cancel duplicated resource pack requests compatible with multiple APIs, but PacketEvents doesn't work. Basically, the plugin cancel any duplicated resource pack request packet when it is sent to player and also cancel almost every resource pack clear packet sent by plugins like ViaVersion or ItemsAdder when player joins on backend server. With PacketEvents the player gets disconnected when any PacketSendEvent is cancelled.
Software brand Waterfall 1.21 build 579 Velocity 3.3.0-SNAPSHOT
Plugins
How To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots![image](https://github.com/user-attachments/assets/3534c6b8-dfc6-4a22-97d8-67d09ab75800)
Additional context Clearing the buffer on Bungeecord/Velocity doesn't solve the problem, you should replace the cancelled packet by some dummy KeepAlive packet to avoid those errors. https://github.com/retrooper/packetevents/blob/4524b4289cc1912363faf873ee81034105924f1e/bungeecord/src/main/java/io/github/retrooper/packetevents/handlers/PacketEventsEncoder.java#L67 https://github.com/retrooper/packetevents/blob/4524b4289cc1912363faf873ee81034105924f1e/velocity/src/main/java/io/github/retrooper/packetevents/handlers/PacketEventsEncoder.java#L55