How to intercept packet added in another mod?
Relvl opened this issue · 0 comments
Make sure you're doing the following
- [*] You're using the latest build for your server version
- [*] This isn't an issue caused by another plugin
- [*] You've checked for duplicate issues
- [*] You didn't use
/reload
BiblioСraft mod added several packets, I want to intercept some of them.
I cannot find an example or description of how I should do this. There is only a textual name for the packet, and ProtocolLib requires an id number. I think mod's packets have auto-numbering.
First question: how to intercept the packet I need, it is called as follows:
BiblioCraft.ch_BiblioClipboard.sendToServer(new FMLProxyPacket(buffer, "BiblioUpdateInv"));
Second question: how to intercept ALL packets from client if i want to log and understand cheating sequence?