public bool Execute(string[] paramsList) { Console.WriteLine(" 当前有 {0} 个游戏服务器正在运行!", GameServerMgr.GetClientCount()); if (paramsList.Length == 0) { return(true); } string param = CommandMgr.GetParam("-ip", paramsList); if (!string.IsNullOrEmpty(param)) { ServerClient[] list = GameServerMgr.GetAllClient(); for (int i = 0; i < list.Length; i++) { CommandMgr.WriteLine(8, (i + 1).ToString() + ")", 4, list[i].Socket.RemoteEndPoint); } } return(true); }