event onPlayerDisconnect (server-side)
Available since version: 0.0.1
This event is triggered when a player gets disconnected with the server.
Parameters
int playerid, int reason
intplayerid: the id of the player who joined the server.intreason: the reason why player got disconnected. For more information see Network constants.