Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Console.WriteLine(mod.CreateServer(Username, Server));
 }