Exemplo n.º 1
0
 public override string Run(McTcpClient handler, string command)
 {
     if (hasArg(command))
     {
         handler.SendText(getArg(command));
         return "";
     }
     else return CMDDesc;
 }
Exemplo n.º 2
0
 public override string Run(McTcpClient handler, string command, Dictionary <string, object> localVars)
 {
     if (hasArg(command))
     {
         handler.SendText(getArg(command));
         return("");
     }
     else
     {
         return(CMDDesc);
     }
 }
Exemplo n.º 3
0
 public override string Run(McTcpClient handler, string command)
 {
     if (hasArg(command))
     {
         handler.SendText(getArg(command));
         return("");
     }
     else
     {
         return(CMDDesc);
     }
 }
        public override string Run(McTcpClient handler, string command)
        {
            DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(Status));
            WebClient wc = new WebClient();
            List<string> status = Regex.Replace(wc.DownloadString("http://status.mojang.com/check"), "[{}\"]", "").Replace("[", "").Replace("]", "").Split(',').ToList<string>();

            foreach (string s in status)
            {
                handler.SendText(s);
                System.Threading.Thread.Sleep(1000);
            }
            return "";
        }