OnPlayerBanned
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerBanned( Connection connection, string ToString() )
{
Puts( "OnPlayerBanned works!" );
}
Location
- EACServer::OnClientActionRequired(Epic.OnlineServices.AntiCheatCommon.OnClientActionRequiredCallbackInfo& data)
csharp
//---
{
2,
0,
"<color=#fff>SERVER</color> Kicking " + connection.username + " (banned by anticheat)"
});
Interface.CallHook("OnPlayerBanned", connection, actionReasonDetailsString.ToString());
if (data.ActionReasonCode == AntiCheatCommonClientActionReason.PermanentBanned)
{
ConVar.Entity.DeleteBy(connection.userid);
}
}
//---