public bool RecvPacket(PacketPlayerLeave p) { if (Identity == null) { Disconnect("Cannot do that without authenticating first!"); return(false); } for (int i = 0; i < OnlinePlayers.Count; i++) { if (OnlinePlayers[i].UserName == p.PlayerName) { OnlinePlayers.RemoveAt(i); return(true); } } Disconnect("Non-existant user disconnected?"); return(false); }