Hi guys,
I’m currently attempting to solve some issues we’re having when multiple players all attempt to join into the last slot on the server at the same time.
I’m using a custom NetworkManager, and would like to be able to kick players during OnServerAddPlayer(NetworkConnection conn, short playerControllerId).
At this point, doing:
conn.Disconnect();
sort-of works, but generates errors on the server which are probably breaking some other things I’ve not noticed yet (my previous experience with any UNET errors).
What is the correct procedure to disconnect a player at this point? I don’t care about sending them a message detailing why they’ve been disconnected.
Thanks in advance for any help.