public static void WriteRankUpdate() { lock (Handle.OnlineUsers) { foreach (var client in Handle.OnlineUsers) { try { Packets.YourRank(client.Value).Write(client.Key); } catch { } } } }