OnPlayerKicked
Usage
- No return behavior
Example Autogenerated
csharp
private void OnPlayerKicked( BasePlayer instance, string reason, bool reserveSlot )
{
Puts( "OnPlayerKicked works!" );
}
csharp
private void OnPlayerKicked( Connection connection, string ToString() )
{
Puts( "OnPlayerKicked works!" );
}
Location
- BasePlayer::Kick(string reason, bool reserveSlot)
- EACServer::OnClientActionRequired(Epic.OnlineServices.AntiCheatCommon.OnClientActionRequiredCallbackInfo& data)
csharp
//---
{
return;
}
this.net.connection.canReserveSlot = reserveSlot;
Net.sv.Kick(this.net.connection, reason, false);
Interface.CallHook("OnPlayerKicked", this, reason, reserveSlot);
}
csharp
//---
else
{
Debug.Log(string.Format("[EAC] Kicking {0} / {1} ({2})", connection.userid, connection.username, actionReasonDetailsString));
connection.authStatusEAC = "eac";
Network.Net.sv.Kick(connection, "EAC: " + actionReasonDetailsString, false);
Interface.CallHook("OnPlayerKicked", connection, actionReasonDetailsString.ToString());
if (data.ActionReasonCode == AntiCheatCommonClientActionReason.PermanentBanned || data.ActionReasonCode == AntiCheatCommonClientActionReason.TemporaryBanned)
{
connection.authStatusEAC = "eacbanned";
ConsoleNetwork.BroadcastToAllClients("chat.add", new object[]
{
//---