Skip to content

event onPlayerDisconnect (server-side)

Available since version: 0.0.1

This event is triggered when a player gets disconnected with the server.


int playerid, int reason
  • int playerid: the id of the player who joined the server.
  • int reason: the reason why player got disconnected. For more information see Network constants.