Closed JustDoom closed 2 years ago
Can you use pastebin?
https://pastebin.com/0dEwkNuy not spamming like it was atm anymore. also idk if urs PE or my plugin but this happened on shutdown https://pastebin.com/iYjfJY3L
never mind spammed again https://pastebin.com/zU6bBmd7
Can we see some of your code?
i think some lines are different. ill test it again to get the lines correct again but here is the code https://github.com/JustDoom/FlappyAC/blob/full-release/plugin/src/main/java/com/imjustdoom/flappyanticheat/packet/processor/ReceivingPacketProcessor.java
@retrooper ok here https://bin.birdflop.com/oxeweyazup.md just inore the boat? thing. was testing something
Its cause you arre running threads while not on netty thread.
Working with async listeners has become a bit tougher in 2.0, but I support it now. You basically need to clone the event. event = event.clone() and make sure you use the cloned version. BUT as soon as you are doing with the event(after cloning), you must run event.cleanUp() or else you will end up with a memory leak.
PS. You need to clone the event while you are inside the packet listener's thread obviously. Then the rest of the processing can be done later.
Describe the bug I try to get the packet wrapper but it gives off errors.
To Reproduce Steps to reproduce the behavior: Example:
Expected behavior That not to give errors
About your server (please complete the following information):
Server Version: 1.18.1
Plugins List if possible: only my plugin
Additional context https://discord.com/channels/721686193061888071/755472595096174873/945178806682017802