public static void OnJoinGame(Connection connection) { if (easyAntiCheat == null) { OnAuthenticatedLocal(connection); OnAuthenticatedRemote(connection); } else { Client client = easyAntiCheat.GenerateCompatibilityClient(); easyAntiCheat.RegisterClient(client, connection.userid.ToString(), "127.0.0.1", Guid.NewGuid().ToString(), Guid.NewGuid().ToString(), (connection.authLevel <= 0 ? PlayerRegisterFlags.PlayerRegisterFlagNone : PlayerRegisterFlags.PlayerRegisterFlagAdmin)); client2connection.Add(client, connection); connection2client.Add(connection, client); connection2status.Add(connection, ClientStatus.ClientDisconnected); if (ShouldIgnore(connection)) { OnAuthenticatedLocal(connection); OnAuthenticatedRemote(connection); } } }
public static void OnJoinGame(Connection connection) { if (easyAntiCheat != null) { EasyAntiCheat.Server.Hydra.Client client = easyAntiCheat.GenerateCompatibilityClient(); easyAntiCheat.RegisterClient(client, connection.userid.ToString(), connection.ipaddress, connection.ownerid.ToString(), connection.username, (connection.authLevel != 0) ? PlayerRegisterFlags.PlayerRegisterFlagAdmin : PlayerRegisterFlags.PlayerRegisterFlagNone); client2connection.Add(client, connection); connection2client.Add(connection, client); connection2status.Add(connection, ClientStatus.Reserved); if (ShouldIgnore(connection)) { OnAuthenticatedLocal(connection); OnAuthenticatedRemote(connection); } } else { OnAuthenticatedLocal(connection); OnAuthenticatedRemote(connection); } }