Solved Is ServerPreConnectEvent and ServerPostConnect broken?

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

BlackDiamond

New member
Jul 31, 2024
3
0
1
Hey there! I'm working on a plugin that makes use of the ServerPreConnectEvent (I also tried re-implimenting with ServerPostConnectEvent), and the .getPlayer() method is always returning null, it seems like this shouldn't really be possible, anyone have any ideas?
 

BlackDiamond

New member
Jul 31, 2024
3
0
1
I just looked at the Velocity source code, there is a precondition in the constructor of both classes that should prevent this, now I'm even more confused.