/** \brief Destroy player info and disconnect \note Works only on server */ proto native void DisconnectPlayer(PlayerIdentity identity);
this is the current DisconnectPlayer function, however when invoked it sends the player back to the main menu with no reason. I propose the following change:
/** \brief Destroy player info and disconnect \note Works only on server */ proto native void DisconnectPlayer(PlayerIdentity identity, string message="");
Then when the main menu is invoked after a disconnection, if the string is empty then it is a normal disconnect, but if the message has text, display said text in an alert box equivalent to the pbo error window.