ProtocolLib

3M Downloads

How do you access netty channel from PacketEvent?

retrooper opened this issue · 2 comments

commented

How do I access the netty channel object from a PacketEvent?
Let’s say the packet in the packetevent is a login or status packet, how can we identify who is sending/receiving it?
We would need the channel(player should be null in such an early packet), so I wanna know how to access it cause I couldn’t figure out.
Thanks.

commented

@retrooper did you figure it out? If yes, could you please tell me how you did it? It would help me a lot. Thanks in advance!

commented

I can't exactly remember, I couldn't access the netty channel, but I accessed the INetSocketAddress or so. It should also be unique.