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; }
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"); }