OnClientDisconnect
Usage
- No return behavior
Example Autogenerated
csharp
private void OnClientDisconnect( Connection connection, string text )
{
Puts( "OnClientDisconnect works!" );
}
Location
- ServerMgr::ReadDisconnectReason(Network.Message packet)
csharp
//---
{
string text = packet.read.String(4096, false);
string text2 = packet.connection.ToString();
if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text2))
{
Interface.CallHook("OnClientDisconnect", packet.connection, text);
DebugEx.Log(text2 + " disconnecting: " + text, StackTraceLogType.None);
}
}