示例#1
0
 public JsonApiServer()
 {
     Name = "JsonApi";
     Logo = Resources.jsonapi_logo;
     Site = "http://mcjsonapi.com/";
     HasCustomAssembly        = true;
     CustomAssembly           = "";    // will be set in preparelaunch
     SupportsPlugins          = false; //disable plugin manager on this one
     HasCustomSettingsControl = true;
     CustomSettingsControl    = new JsonApiCredentialsSettingsControl();
     IsLocal = false;
 }
示例#2
0
        public override string GetLaunchParameters(string defaultParameters = "")
        {
            Control control = Starter.GetCustomSettingsControl();

            if (!(control is JsonApiCredentialsSettingsControl))
            {
                throw new Exception("Couldn't retrieve parameters");
            }

            JsonApiCredentialsSettingsControl cred = (JsonApiCredentialsSettingsControl)control;

            return("-u=" + cred.Username + " -p=" + cred.Password + " -s=" + cred.Salt + " -host=" + cred.Host +
                   " -port=" + cred.Port + " -api=1 -filter");
        }