playerDropped

Called when a player drops from the server.

Parameters

string reason

Examples

This example prints the name of the player and the reason why the player has disconnected to the server console.

Lua Example:
AddEventHandler('playerDropped', function (source, reason)
  print('Player ' .. GetPlayerName(source) .. ' dropped (Reason: ' .. reason .. '')
end)
C# Example:
// In class constructor
EventHandlers["playerDropped"] += new Action<Player, string>(OnPlayerDropped);

// Delegate method
private void OnPlayerDropped([FromSource]Player player, string reason)
{
    Debug.WriteLine($"Player {player.Name} dropped (Reason: {reason}).");
}