/// Processes the callback data when authentication statuses change public void AuthChange(ulong steamid, ulong ownerid, ServerAuth.Status status) { var player = PlayerList.Instance.Get(steamid); if (player == ConnectedPlayer.Invalid) { Logger.LogWarning($"Steam gave us a {status} ticket response for unconnected id {steamid}", Category.Steam); return; } if (status == ServerAuth.Status.OK) { Logger.LogWarning($"Steam gave us a 'ok' ticket response for already connected id {steamid}", Category.Steam); return; } // Disconnect logging if (status == ServerAuth.Status.VACCheckTimedOut) { Logger.LogWarning($"The SteamID '{steamid}' left the server. ({status})", Category.Steam); return; } }
/// Processes the callback data when authentication statuses change public void AuthChange(ulong steamid, ulong ownerid, ServerAuth.Status status) { var player = PlayerList.Instance.Get(steamid); if (player == ConnectedPlayer.Invalid) { Debug.LogWarning($"Steam gave us a {status} ticket response for unconnected id {steamid}"); return; } if (status == ServerAuth.Status.OK) { Debug.LogWarning($"Steam gave us a 'ok' ticket response for already connected id {steamid}"); return; } if (status == ServerAuth.Status.VACCheckTimedOut) { return; } Kick(player, $"Steam: {status}"); }