//public static ResponseData ServerData;

        public static void Main(string[] args)
        {
            string ServerIP = "127.0.0.1";  //args[0];                 // localhost
            ushort ServerPort = 25565;      //short.Parse(args[1]);    // 25565

            // Gettin' information about the server.
            //using (var SClient = new ServerInfoParser())
            //    ServerData = SClient.GetResponseData(ServerIP, ServerPort, 47);

            Client = new Minecraft().Create("TestBot", "", NetworkMode.ProtocolModern, true) as Minecraft;
            Client.BeginConnect(ServerIP, ServerPort, OnConnected, null);

            while (true) { Thread.Sleep(50); }
        }
Esempio n. 2
0
        //public static ResponseData ServerData;

        public static void Main(string[] args)
        {
            string ServerIP   = "127.0.0.1"; //args[0];                 // localhost
            ushort ServerPort = 25565;       //short.Parse(args[1]);    // 25565

            // Gettin' information about the server.
            //using (var SClient = new ServerInfoParser())
            //    ServerData = SClient.GetResponseData(ServerIP, ServerPort, 47);

            Client = new Minecraft().Create("TestBot", "", NetworkMode.ProtocolModern, true) as Minecraft;
            Client.BeginConnect(ServerIP, ServerPort, OnConnected, null);

            while (true)
            {
                Thread.Sleep(50);
            }
        }