ProtocolLib

3M Downloads

Async PacketListener

MrLolok opened this issue ยท 2 comments

commented

Is there a way to use PacketListeners in async? I tried the option ListenerOptions.ASYNC but when I receive a packet is on the main thread

commented

We also have registerAsyncHandler (here). Remember to call .start(). AFAIK, this processes the packet async.

commented

Thanks, I also tried this but I didn't called start()