private void AddServer(string Username, string ServerName, string StartFile, string ServerArgs) { ServerModifier serverModifier = new ServerModifier(MoonResource.ServerIP, MoonResource.ServerPort); serverModifier.CreateServer(Username, ServerName); serverModifier.WriteSetting(Username, ServerName, "STARTFILE", StartFile); serverModifier.WriteSetting(Username, ServerName, "SERVERARGS", ServerArgs); }
private void button1_Click(object sender, EventArgs e) { Console.WriteLine(mod.CreateServer(Username, Server)); }