public ActionResult StartMapper(string world)
        {
            var serverPath = WebConfig.AppSettings["McServerPath"];

            if (world == null)
            {
                world = McProperties.GetValue("level-name");
            }

            var mapsDir = Path.Combine(serverPath, "Map");

            if (!Directory.Exists(mapsDir))
            {
                Directory.CreateDirectory(mapsDir);
            }

            try
            {
                ProcHttpClient.StartProc("Mapper",
                                         Path.Combine(serverPath, "Overviewer\\overviewer.exe"),
                                         "-p 4 --rendermodes=smooth_lighting,smooth_night \""
                                         + world + "\" \"" + Path.Combine("Map", world) + "\"",
                                         serverPath);
            }
            catch (Exception ex)
            {
                Response.StatusCode = 500;
                return(Content(ex.ToString()));
            }

            return(Content("OK " + DateTime.Now.Ticks));
        }
        public ActionResult Start()
        {
            try
            {
                ProcHttpClient.StartProc("McServer", WebConfig.AppSettings["JrePath"],
                                         "-Xmx1024M -Xms512M -jar " + WebConfig.AppSettings["McJarFile"] + " nogui",
                                         WebConfig.AppSettings["McServerPath"]);
            }
            catch (Exception ex)
            {
                Response.StatusCode = 500;
                return(Content(ex.ToString()));
            }

            return(Content("OK " + DateTime.Now.Ticks));
        }