#found the code, but its really old and idk how usable the code is now
1 messages · Page 1 of 1 (latest)
the general concept:
when the player logs in the code would:
get the player's Channel, via NMS, then once it was gotten:
get the ChannelPipeline and add a custom Handler before "packet_handler"
and then in the channelRead() override i would get the class of the message, (it would be one of the client->server packets)
and then my own code basically just read the packets and generated some custom events and fired them off.
i don't want to share code because this was back around 1.15 and a lot of stuff might have changed since then
@ancient gyro if you end up messing around with this lmk and i can maybe help a bit
tyty
oh ya, forgot to say: Channel, ChannelPipeline, and Handler are from: https://netty.io/4.1/api/index.html