retrooper / packetevents

Precision meets performance—a powerful tool for mastering Minecraft packet manipulation with speed and finesse.
GNU General Public License v3.0
563 stars 152 forks source link

(Velocity) Avoid user if channel cannot be found #939

Closed rexlManu closed 3 months ago

rexlManu commented 3 months ago

This is abit more niche problem but I'm creating fake velocity players with a empty connection and fake channel. In the spigot part you already handle that part with the FakeUtils and checking if that is named FakeChannel. I first tried that approch but the class name were always just Channel. I just added a null check for now.

If that's not the proper way, I would change it based on your suggested different way.