ACR_ServerCommunicator.ACR_ServerCommunicator.ListOnlineServers C# (CSharp) Method

ListOnlineServers() private method

Send a textural description of the online server list to a player on the local server.
private ListOnlineServers ( uint PlayerObject ) : void
PlayerObject uint Supplies the player object id for the /// player to send the server list to.
return void
        private void ListOnlineServers(uint PlayerObject)
        {
            GetDatabase().ACR_IncrementStatistic("LIST_ONLINE_SERVERS");

            lock (WorldManager)
            {
                foreach (GameServer Server in WorldManager.Servers)
                {
                    if (!Server.Online)
                        continue;

                    SendMessageToPC(PlayerObject, String.Format(
                        "Server {0}: {1} users.",
                        Server.Name,
                        Server.Characters.Count));
                }
            }
        }
ACR_ServerCommunicator