Mały bałagan, lekko zbugowany, ogólnie pechowy build
This commit is contained in:
Binary file not shown.
+118
-205
@@ -29,6 +29,7 @@ namespace ServCreator
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPanelForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPanelForm));
|
||||||
this.editProperties = new System.Windows.Forms.Button();
|
this.editProperties = new System.Windows.Forms.Button();
|
||||||
this.outputText = new System.Windows.Forms.RichTextBox();
|
this.outputText = new System.Windows.Forms.RichTextBox();
|
||||||
@@ -37,27 +38,20 @@ namespace ServCreator
|
|||||||
this.startBtn = new System.Windows.Forms.Button();
|
this.startBtn = new System.Windows.Forms.Button();
|
||||||
this.killBtn = new System.Windows.Forms.Button();
|
this.killBtn = new System.Windows.Forms.Button();
|
||||||
this.servMgmtBox = new System.Windows.Forms.GroupBox();
|
this.servMgmtBox = new System.Windows.Forms.GroupBox();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
this.stopBtn = new System.Windows.Forms.Button();
|
this.stopBtn = new System.Windows.Forms.Button();
|
||||||
this.playerMgmtBox = new System.Windows.Forms.GroupBox();
|
|
||||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
|
||||||
this.kickBtn = new System.Windows.Forms.Button();
|
|
||||||
this.banPlayerBtn = new System.Windows.Forms.Button();
|
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
|
||||||
this.reasonPlayerTxt = new System.Windows.Forms.RichTextBox();
|
|
||||||
this.opBtn = new System.Windows.Forms.Button();
|
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
|
||||||
this.nicknameTb = new System.Windows.Forms.TextBox();
|
|
||||||
this.ipBanBox = new System.Windows.Forms.GroupBox();
|
|
||||||
this.label4 = new System.Windows.Forms.Label();
|
|
||||||
this.ipTxt = new System.Windows.Forms.TextBox();
|
|
||||||
this.banIPBtn = new System.Windows.Forms.Button();
|
|
||||||
this.label3 = new System.Windows.Forms.Label();
|
|
||||||
this.reasonIpTxt = new System.Windows.Forms.RichTextBox();
|
|
||||||
this.serverLabel = new System.Windows.Forms.Label();
|
this.serverLabel = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.panel3 = new System.Windows.Forms.Panel();
|
||||||
|
this.panel4 = new System.Windows.Forms.Panel();
|
||||||
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||||
this.servMgmtBox.SuspendLayout();
|
this.servMgmtBox.SuspendLayout();
|
||||||
this.playerMgmtBox.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.groupBox3.SuspendLayout();
|
this.panel1.SuspendLayout();
|
||||||
this.ipBanBox.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// editProperties
|
// editProperties
|
||||||
@@ -74,16 +68,16 @@ namespace ServCreator
|
|||||||
// outputText
|
// outputText
|
||||||
//
|
//
|
||||||
this.outputText.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
this.outputText.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
this.outputText.Location = new System.Drawing.Point(175, 12);
|
this.outputText.Location = new System.Drawing.Point(172, 12);
|
||||||
this.outputText.Name = "outputText";
|
this.outputText.Name = "outputText";
|
||||||
this.outputText.Size = new System.Drawing.Size(613, 556);
|
this.outputText.Size = new System.Drawing.Size(616, 365);
|
||||||
this.outputText.TabIndex = 1;
|
this.outputText.TabIndex = 1;
|
||||||
this.outputText.Text = "";
|
this.outputText.Text = "";
|
||||||
this.outputText.TextChanged += new System.EventHandler(this.outputChanged);
|
this.outputText.TextChanged += new System.EventHandler(this.outputChanged);
|
||||||
//
|
//
|
||||||
// commandInput
|
// commandInput
|
||||||
//
|
//
|
||||||
this.commandInput.Location = new System.Drawing.Point(175, 576);
|
this.commandInput.Location = new System.Drawing.Point(175, 383);
|
||||||
this.commandInput.Name = "commandInput";
|
this.commandInput.Name = "commandInput";
|
||||||
this.commandInput.Size = new System.Drawing.Size(518, 20);
|
this.commandInput.Size = new System.Drawing.Size(518, 20);
|
||||||
this.commandInput.TabIndex = 2;
|
this.commandInput.TabIndex = 2;
|
||||||
@@ -91,7 +85,7 @@ namespace ServCreator
|
|||||||
//
|
//
|
||||||
// submit
|
// submit
|
||||||
//
|
//
|
||||||
this.submit.Location = new System.Drawing.Point(699, 574);
|
this.submit.Location = new System.Drawing.Point(699, 381);
|
||||||
this.submit.Name = "submit";
|
this.submit.Name = "submit";
|
||||||
this.submit.Size = new System.Drawing.Size(89, 23);
|
this.submit.Size = new System.Drawing.Size(89, 23);
|
||||||
this.submit.TabIndex = 3;
|
this.submit.TabIndex = 3;
|
||||||
@@ -127,18 +121,31 @@ namespace ServCreator
|
|||||||
//
|
//
|
||||||
// servMgmtBox
|
// servMgmtBox
|
||||||
//
|
//
|
||||||
|
this.servMgmtBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.servMgmtBox.Controls.Add(this.button1);
|
||||||
this.servMgmtBox.Controls.Add(this.stopBtn);
|
this.servMgmtBox.Controls.Add(this.stopBtn);
|
||||||
this.servMgmtBox.Controls.Add(this.startBtn);
|
this.servMgmtBox.Controls.Add(this.startBtn);
|
||||||
this.servMgmtBox.Controls.Add(this.killBtn);
|
this.servMgmtBox.Controls.Add(this.killBtn);
|
||||||
this.servMgmtBox.Controls.Add(this.editProperties);
|
this.servMgmtBox.Controls.Add(this.editProperties);
|
||||||
this.servMgmtBox.ForeColor = System.Drawing.Color.White;
|
this.servMgmtBox.ForeColor = System.Drawing.Color.White;
|
||||||
this.servMgmtBox.Location = new System.Drawing.Point(12, 109);
|
this.servMgmtBox.Location = new System.Drawing.Point(15, 157);
|
||||||
this.servMgmtBox.Name = "servMgmtBox";
|
this.servMgmtBox.Name = "servMgmtBox";
|
||||||
this.servMgmtBox.Size = new System.Drawing.Size(157, 107);
|
this.servMgmtBox.Size = new System.Drawing.Size(157, 140);
|
||||||
this.servMgmtBox.TabIndex = 6;
|
this.servMgmtBox.TabIndex = 6;
|
||||||
this.servMgmtBox.TabStop = false;
|
this.servMgmtBox.TabStop = false;
|
||||||
this.servMgmtBox.Text = "Server Management";
|
this.servMgmtBox.Text = "Server Management";
|
||||||
//
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.button1.Location = new System.Drawing.Point(6, 107);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.button1.TabIndex = 7;
|
||||||
|
this.button1.Text = "Open Easy Management";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||||
|
//
|
||||||
// stopBtn
|
// stopBtn
|
||||||
//
|
//
|
||||||
this.stopBtn.Enabled = false;
|
this.stopBtn.Enabled = false;
|
||||||
@@ -151,162 +158,6 @@ namespace ServCreator
|
|||||||
this.stopBtn.UseVisualStyleBackColor = true;
|
this.stopBtn.UseVisualStyleBackColor = true;
|
||||||
this.stopBtn.Click += new System.EventHandler(this.stopBtn_Click);
|
this.stopBtn.Click += new System.EventHandler(this.stopBtn_Click);
|
||||||
//
|
//
|
||||||
// playerMgmtBox
|
|
||||||
//
|
|
||||||
this.playerMgmtBox.Controls.Add(this.groupBox3);
|
|
||||||
this.playerMgmtBox.Controls.Add(this.opBtn);
|
|
||||||
this.playerMgmtBox.Controls.Add(this.label1);
|
|
||||||
this.playerMgmtBox.Controls.Add(this.nicknameTb);
|
|
||||||
this.playerMgmtBox.Enabled = false;
|
|
||||||
this.playerMgmtBox.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.playerMgmtBox.Location = new System.Drawing.Point(12, 222);
|
|
||||||
this.playerMgmtBox.Name = "playerMgmtBox";
|
|
||||||
this.playerMgmtBox.Size = new System.Drawing.Size(157, 213);
|
|
||||||
this.playerMgmtBox.TabIndex = 7;
|
|
||||||
this.playerMgmtBox.TabStop = false;
|
|
||||||
this.playerMgmtBox.Text = "Player Management";
|
|
||||||
//
|
|
||||||
// groupBox3
|
|
||||||
//
|
|
||||||
this.groupBox3.Controls.Add(this.kickBtn);
|
|
||||||
this.groupBox3.Controls.Add(this.banPlayerBtn);
|
|
||||||
this.groupBox3.Controls.Add(this.label2);
|
|
||||||
this.groupBox3.Controls.Add(this.reasonPlayerTxt);
|
|
||||||
this.groupBox3.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.groupBox3.Location = new System.Drawing.Point(6, 91);
|
|
||||||
this.groupBox3.Name = "groupBox3";
|
|
||||||
this.groupBox3.Size = new System.Drawing.Size(145, 117);
|
|
||||||
this.groupBox3.TabIndex = 3;
|
|
||||||
this.groupBox3.TabStop = false;
|
|
||||||
this.groupBox3.Text = "Ban or Kick Player";
|
|
||||||
//
|
|
||||||
// kickBtn
|
|
||||||
//
|
|
||||||
this.kickBtn.ForeColor = System.Drawing.Color.Black;
|
|
||||||
this.kickBtn.Location = new System.Drawing.Point(77, 85);
|
|
||||||
this.kickBtn.Name = "kickBtn";
|
|
||||||
this.kickBtn.Size = new System.Drawing.Size(62, 23);
|
|
||||||
this.kickBtn.TabIndex = 3;
|
|
||||||
this.kickBtn.Text = "Kick";
|
|
||||||
this.kickBtn.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// banPlayerBtn
|
|
||||||
//
|
|
||||||
this.banPlayerBtn.ForeColor = System.Drawing.Color.Black;
|
|
||||||
this.banPlayerBtn.Location = new System.Drawing.Point(6, 85);
|
|
||||||
this.banPlayerBtn.Name = "banPlayerBtn";
|
|
||||||
this.banPlayerBtn.Size = new System.Drawing.Size(62, 23);
|
|
||||||
this.banPlayerBtn.TabIndex = 2;
|
|
||||||
this.banPlayerBtn.Text = "Ban";
|
|
||||||
this.banPlayerBtn.UseVisualStyleBackColor = true;
|
|
||||||
this.banPlayerBtn.Click += new System.EventHandler(this.banPlayerBtn_Click);
|
|
||||||
//
|
|
||||||
// label2
|
|
||||||
//
|
|
||||||
this.label2.AutoSize = true;
|
|
||||||
this.label2.Location = new System.Drawing.Point(7, 20);
|
|
||||||
this.label2.Name = "label2";
|
|
||||||
this.label2.Size = new System.Drawing.Size(47, 13);
|
|
||||||
this.label2.TabIndex = 1;
|
|
||||||
this.label2.Text = "Reason:";
|
|
||||||
//
|
|
||||||
// reasonPlayerTxt
|
|
||||||
//
|
|
||||||
this.reasonPlayerTxt.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
||||||
this.reasonPlayerTxt.Location = new System.Drawing.Point(6, 36);
|
|
||||||
this.reasonPlayerTxt.Name = "reasonPlayerTxt";
|
|
||||||
this.reasonPlayerTxt.Size = new System.Drawing.Size(133, 42);
|
|
||||||
this.reasonPlayerTxt.TabIndex = 0;
|
|
||||||
this.reasonPlayerTxt.Text = "";
|
|
||||||
//
|
|
||||||
// opBtn
|
|
||||||
//
|
|
||||||
this.opBtn.ForeColor = System.Drawing.Color.Black;
|
|
||||||
this.opBtn.Location = new System.Drawing.Point(6, 62);
|
|
||||||
this.opBtn.Name = "opBtn";
|
|
||||||
this.opBtn.Size = new System.Drawing.Size(145, 23);
|
|
||||||
this.opBtn.TabIndex = 2;
|
|
||||||
this.opBtn.Text = "Give OP";
|
|
||||||
this.opBtn.UseVisualStyleBackColor = true;
|
|
||||||
this.opBtn.Click += new System.EventHandler(this.opBtn_Click);
|
|
||||||
//
|
|
||||||
// label1
|
|
||||||
//
|
|
||||||
this.label1.AutoSize = true;
|
|
||||||
this.label1.Location = new System.Drawing.Point(6, 19);
|
|
||||||
this.label1.Name = "label1";
|
|
||||||
this.label1.Size = new System.Drawing.Size(90, 13);
|
|
||||||
this.label1.TabIndex = 1;
|
|
||||||
this.label1.Text = "Player Nickname:";
|
|
||||||
//
|
|
||||||
// nicknameTb
|
|
||||||
//
|
|
||||||
this.nicknameTb.Location = new System.Drawing.Point(6, 35);
|
|
||||||
this.nicknameTb.Name = "nicknameTb";
|
|
||||||
this.nicknameTb.Size = new System.Drawing.Size(145, 20);
|
|
||||||
this.nicknameTb.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// ipBanBox
|
|
||||||
//
|
|
||||||
this.ipBanBox.Controls.Add(this.label4);
|
|
||||||
this.ipBanBox.Controls.Add(this.ipTxt);
|
|
||||||
this.ipBanBox.Controls.Add(this.banIPBtn);
|
|
||||||
this.ipBanBox.Controls.Add(this.label3);
|
|
||||||
this.ipBanBox.Controls.Add(this.reasonIpTxt);
|
|
||||||
this.ipBanBox.Enabled = false;
|
|
||||||
this.ipBanBox.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.ipBanBox.Location = new System.Drawing.Point(12, 443);
|
|
||||||
this.ipBanBox.Name = "ipBanBox";
|
|
||||||
this.ipBanBox.Size = new System.Drawing.Size(157, 153);
|
|
||||||
this.ipBanBox.TabIndex = 4;
|
|
||||||
this.ipBanBox.TabStop = false;
|
|
||||||
this.ipBanBox.Text = "Ban for Player IP";
|
|
||||||
//
|
|
||||||
// label4
|
|
||||||
//
|
|
||||||
this.label4.AutoSize = true;
|
|
||||||
this.label4.Location = new System.Drawing.Point(6, 20);
|
|
||||||
this.label4.Name = "label4";
|
|
||||||
this.label4.Size = new System.Drawing.Size(61, 13);
|
|
||||||
this.label4.TabIndex = 4;
|
|
||||||
this.label4.Text = "IP Address:";
|
|
||||||
//
|
|
||||||
// ipTxt
|
|
||||||
//
|
|
||||||
this.ipTxt.Location = new System.Drawing.Point(6, 36);
|
|
||||||
this.ipTxt.Name = "ipTxt";
|
|
||||||
this.ipTxt.Size = new System.Drawing.Size(145, 20);
|
|
||||||
this.ipTxt.TabIndex = 3;
|
|
||||||
//
|
|
||||||
// banIPBtn
|
|
||||||
//
|
|
||||||
this.banIPBtn.ForeColor = System.Drawing.Color.Black;
|
|
||||||
this.banIPBtn.Location = new System.Drawing.Point(6, 123);
|
|
||||||
this.banIPBtn.Name = "banIPBtn";
|
|
||||||
this.banIPBtn.Size = new System.Drawing.Size(145, 23);
|
|
||||||
this.banIPBtn.TabIndex = 2;
|
|
||||||
this.banIPBtn.Text = "Ban";
|
|
||||||
this.banIPBtn.UseVisualStyleBackColor = true;
|
|
||||||
this.banIPBtn.Click += new System.EventHandler(this.banIPBtn_Click);
|
|
||||||
//
|
|
||||||
// label3
|
|
||||||
//
|
|
||||||
this.label3.AutoSize = true;
|
|
||||||
this.label3.Location = new System.Drawing.Point(3, 59);
|
|
||||||
this.label3.Name = "label3";
|
|
||||||
this.label3.Size = new System.Drawing.Size(47, 13);
|
|
||||||
this.label3.TabIndex = 1;
|
|
||||||
this.label3.Text = "Reason:";
|
|
||||||
//
|
|
||||||
// reasonIpTxt
|
|
||||||
//
|
|
||||||
this.reasonIpTxt.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
|
||||||
this.reasonIpTxt.Location = new System.Drawing.Point(6, 75);
|
|
||||||
this.reasonIpTxt.Name = "reasonIpTxt";
|
|
||||||
this.reasonIpTxt.Size = new System.Drawing.Size(145, 42);
|
|
||||||
this.reasonIpTxt.TabIndex = 0;
|
|
||||||
this.reasonIpTxt.Text = "";
|
|
||||||
//
|
|
||||||
// serverLabel
|
// serverLabel
|
||||||
//
|
//
|
||||||
this.serverLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
this.serverLabel.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||||
@@ -316,31 +167,99 @@ namespace ServCreator
|
|||||||
this.serverLabel.Size = new System.Drawing.Size(157, 94);
|
this.serverLabel.Size = new System.Drawing.Size(157, 94);
|
||||||
this.serverLabel.TabIndex = 8;
|
this.serverLabel.TabIndex = 8;
|
||||||
//
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.groupBox1.Controls.Add(this.label2);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(12, 303);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(157, 100);
|
||||||
|
this.groupBox1.TabIndex = 9;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "System Resources Usage";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(7, 42);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(68, 13);
|
||||||
|
this.label2.TabIndex = 1;
|
||||||
|
this.label2.Text = "RAM Usage:";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(7, 20);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(66, 13);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "CPU Usage:";
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.Controls.Add(this.groupBox1);
|
||||||
|
this.panel1.Controls.Add(this.serverLabel);
|
||||||
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(172, 415);
|
||||||
|
this.panel1.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.panel2.Location = new System.Drawing.Point(172, 0);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(628, 12);
|
||||||
|
this.panel2.TabIndex = 11;
|
||||||
|
//
|
||||||
|
// panel3
|
||||||
|
//
|
||||||
|
this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
|
this.panel3.Location = new System.Drawing.Point(172, 403);
|
||||||
|
this.panel3.Name = "panel3";
|
||||||
|
this.panel3.Size = new System.Drawing.Size(628, 12);
|
||||||
|
this.panel3.TabIndex = 12;
|
||||||
|
//
|
||||||
|
// panel4
|
||||||
|
//
|
||||||
|
this.panel4.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
this.panel4.Location = new System.Drawing.Point(788, 12);
|
||||||
|
this.panel4.Name = "panel4";
|
||||||
|
this.panel4.Size = new System.Drawing.Size(12, 391);
|
||||||
|
this.panel4.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// timer1
|
||||||
|
//
|
||||||
|
this.timer1.Interval = 1000;
|
||||||
|
this.timer1.Tick += new System.EventHandler(this.systemUsage);
|
||||||
|
//
|
||||||
// ControlPanelForm
|
// ControlPanelForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
||||||
this.ClientSize = new System.Drawing.Size(800, 608);
|
this.ClientSize = new System.Drawing.Size(800, 415);
|
||||||
this.Controls.Add(this.serverLabel);
|
this.Controls.Add(this.panel4);
|
||||||
this.Controls.Add(this.ipBanBox);
|
this.Controls.Add(this.panel3);
|
||||||
this.Controls.Add(this.playerMgmtBox);
|
this.Controls.Add(this.panel2);
|
||||||
this.Controls.Add(this.servMgmtBox);
|
this.Controls.Add(this.servMgmtBox);
|
||||||
this.Controls.Add(this.submit);
|
this.Controls.Add(this.submit);
|
||||||
this.Controls.Add(this.commandInput);
|
this.Controls.Add(this.commandInput);
|
||||||
this.Controls.Add(this.outputText);
|
this.Controls.Add(this.outputText);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "ControlPanelForm";
|
this.Name = "ControlPanelForm";
|
||||||
this.Text = "Control Panel - ServManager for Minecraft";
|
this.Text = "Control Panel - ServManager for Minecraft";
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ControlPanelForm_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ControlPanelForm_FormClosing);
|
||||||
this.Load += new System.EventHandler(this.ControlPanelForm_Load);
|
this.Load += new System.EventHandler(this.ControlPanelForm_Load);
|
||||||
this.servMgmtBox.ResumeLayout(false);
|
this.servMgmtBox.ResumeLayout(false);
|
||||||
this.playerMgmtBox.ResumeLayout(false);
|
this.groupBox1.ResumeLayout(false);
|
||||||
this.playerMgmtBox.PerformLayout();
|
this.groupBox1.PerformLayout();
|
||||||
this.groupBox3.ResumeLayout(false);
|
this.panel1.ResumeLayout(false);
|
||||||
this.groupBox3.PerformLayout();
|
|
||||||
this.ipBanBox.ResumeLayout(false);
|
|
||||||
this.ipBanBox.PerformLayout();
|
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@@ -355,22 +274,16 @@ namespace ServCreator
|
|||||||
private System.Windows.Forms.Button startBtn;
|
private System.Windows.Forms.Button startBtn;
|
||||||
private System.Windows.Forms.Button killBtn;
|
private System.Windows.Forms.Button killBtn;
|
||||||
private System.Windows.Forms.GroupBox servMgmtBox;
|
private System.Windows.Forms.GroupBox servMgmtBox;
|
||||||
private System.Windows.Forms.GroupBox playerMgmtBox;
|
|
||||||
private System.Windows.Forms.GroupBox groupBox3;
|
|
||||||
private System.Windows.Forms.Button kickBtn;
|
|
||||||
private System.Windows.Forms.Button banPlayerBtn;
|
|
||||||
private System.Windows.Forms.Label label2;
|
|
||||||
private System.Windows.Forms.RichTextBox reasonPlayerTxt;
|
|
||||||
private System.Windows.Forms.Button opBtn;
|
|
||||||
private System.Windows.Forms.Label label1;
|
|
||||||
private System.Windows.Forms.TextBox nicknameTb;
|
|
||||||
private System.Windows.Forms.GroupBox ipBanBox;
|
|
||||||
private System.Windows.Forms.Label label4;
|
|
||||||
private System.Windows.Forms.TextBox ipTxt;
|
|
||||||
private System.Windows.Forms.Button banIPBtn;
|
|
||||||
private System.Windows.Forms.Label label3;
|
|
||||||
private System.Windows.Forms.RichTextBox reasonIpTxt;
|
|
||||||
private System.Windows.Forms.Label serverLabel;
|
private System.Windows.Forms.Label serverLabel;
|
||||||
private System.Windows.Forms.Button stopBtn;
|
private System.Windows.Forms.Button stopBtn;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private System.Windows.Forms.Panel panel3;
|
||||||
|
private System.Windows.Forms.Panel panel4;
|
||||||
|
private System.Windows.Forms.Timer timer1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -68,6 +68,7 @@ namespace ServCreator
|
|||||||
}
|
}
|
||||||
|
|
||||||
serverLabel.Text = serverName + Environment.NewLine + ip;
|
serverLabel.Text = serverName + Environment.NewLine + ip;
|
||||||
|
streamReader.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,7 +112,6 @@ namespace ServCreator
|
|||||||
Thread thread = new Thread(() =>
|
Thread thread = new Thread(() =>
|
||||||
{
|
{
|
||||||
process.Start();
|
process.Start();
|
||||||
|
|
||||||
while (!process.StandardOutput.EndOfStream)
|
while (!process.StandardOutput.EndOfStream)
|
||||||
{
|
{
|
||||||
string output = process.StandardOutput.ReadLine();
|
string output = process.StandardOutput.ReadLine();
|
||||||
@@ -132,6 +132,8 @@ namespace ServCreator
|
|||||||
});
|
});
|
||||||
|
|
||||||
thread.Start();
|
thread.Start();
|
||||||
|
timer1.Start();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ControlPanelForm_FormClosing(object sender, FormClosingEventArgs e)
|
private void ControlPanelForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
@@ -164,31 +166,12 @@ namespace ServCreator
|
|||||||
|
|
||||||
void enableBoxes(bool value)
|
void enableBoxes(bool value)
|
||||||
{
|
{
|
||||||
playerMgmtBox.Enabled = value;
|
|
||||||
ipBanBox.Enabled = value;
|
|
||||||
stopBtn.Enabled = value;
|
stopBtn.Enabled = value;
|
||||||
killBtn.Enabled = value;
|
killBtn.Enabled = value;
|
||||||
startBtn.Enabled = !value;
|
startBtn.Enabled = !value;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void stopBtn_Click(object sender, EventArgs e) { process.StandardInput.WriteLine("stop"); enableBoxes(false); outputText.Text += "Server has been stoped."; }
|
private void stopBtn_Click(object sender, EventArgs e) { process.StandardInput.WriteLine("stop"); enableBoxes(false); outputText.Text += "Server has been stoped."; }
|
||||||
private void opBtn_Click(object sender, EventArgs e) { process.StandardInput.WriteLine("op " + nicknameTb.Text); }
|
|
||||||
|
|
||||||
private void banPlayerBtn_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if(reasonPlayerTxt.Text != "")
|
|
||||||
process.StandardInput.WriteLine("ban " + nicknameTb.Text + " " + reasonPlayerTxt.Text);
|
|
||||||
else
|
|
||||||
process.StandardInput.WriteLine("ban " + nicknameTb.Text);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void banIPBtn_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
if (reasonIpTxt.Text != "")
|
|
||||||
process.StandardInput.WriteLine("ban " + ipTxt.Text + " " + reasonIpTxt.Text);
|
|
||||||
else
|
|
||||||
process.StandardInput.WriteLine("ban " + ipTxt.Text);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void killBtn_Click(object sender, EventArgs e)
|
private void killBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -196,5 +179,16 @@ namespace ServCreator
|
|||||||
enableBoxes(false);
|
enableBoxes(false);
|
||||||
outputText.Text += "Server has been killed.";
|
outputText.Text += "Server has been killed.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void button1_Click_1(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
ServerManagementForm serverManagement = new ServerManagementForm(configFilePath);
|
||||||
|
serverManagement.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void systemUsage(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
label2.Text = "RAM Usage: " + process.PrivateMemorySize64;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,6 +117,9 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
+5
@@ -86,9 +86,14 @@ namespace ServCreator
|
|||||||
this.ForeColor = System.Drawing.Color.White;
|
this.ForeColor = System.Drawing.Color.White;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MaximumSize = new System.Drawing.Size(292, 143);
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.MinimumSize = new System.Drawing.Size(292, 143);
|
||||||
this.Name = "Form1";
|
this.Name = "Form1";
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "ServManager for Minecraft";
|
this.Text = "ServManager for Minecraft";
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
||||||
this.Load += new System.EventHandler(this.Form1_Load);
|
this.Load += new System.EventHandler(this.Form1_Load);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|||||||
@@ -15,10 +15,7 @@ namespace ServCreator
|
|||||||
public partial class Form1 : Form
|
public partial class Form1 : Form
|
||||||
{
|
{
|
||||||
static Properties.Settings conf = new Properties.Settings();
|
static Properties.Settings conf = new Properties.Settings();
|
||||||
public Form1()
|
public Form1() { InitializeComponent(); }
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void createBtn_Click(object sender, EventArgs e)
|
private void createBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@@ -58,5 +55,10 @@ namespace ServCreator
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
Application.Exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ namespace ServCreator
|
|||||||
var nowalinia = Environment.NewLine;
|
var nowalinia = Environment.NewLine;
|
||||||
|
|
||||||
writer = new StreamWriter(pathToEdit);
|
writer = new StreamWriter(pathToEdit);
|
||||||
writer.Write("#Minecraft server properties" + nowalinia +
|
string serverproperties =
|
||||||
|
"#Minecraft server properties" + nowalinia +
|
||||||
"#" + DateTime.Now + nowalinia +
|
"#" + DateTime.Now + nowalinia +
|
||||||
"spawn-protection=" + spawnProtection.Value + nowalinia +
|
"spawn-protection=" + spawnProtection.Value + nowalinia +
|
||||||
"generator-settings=" + generatorSettings.Text + nowalinia +
|
"generator-settings=" + generatorSettings.Text + nowalinia +
|
||||||
@@ -64,19 +65,27 @@ namespace ServCreator
|
|||||||
"white-list=" + whiteList.Checked.ToString().ToLower() + nowalinia +
|
"white-list=" + whiteList.Checked.ToString().ToLower() + nowalinia +
|
||||||
"generate-structures=" + generateStructures.Checked.ToString().ToLower() + nowalinia +
|
"generate-structures=" + generateStructures.Checked.ToString().ToLower() + nowalinia +
|
||||||
"online-mode=" + onlineMode.Checked.ToString().ToLower() + nowalinia +
|
"online-mode=" + onlineMode.Checked.ToString().ToLower() + nowalinia +
|
||||||
"motd=" + motd.Text + nowalinia
|
"motd=" + motd.Text + nowalinia;
|
||||||
);
|
writer.Write(serverproperties);
|
||||||
writer.Close();
|
writer.Close();
|
||||||
MessageBox.Show("ja pier...")
|
MessageBox.Show("Server Properties has been saved.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e) {
|
private void button1_Click(object sender, EventArgs e) {
|
||||||
if (tabControl1.SelectedIndex == 1)
|
if (tabControl1.SelectedIndex == 1)
|
||||||
saveIt();
|
saveIt();
|
||||||
else
|
else
|
||||||
MessageBox.Show("Idź do manualnego, lol");
|
simpleSave();
|
||||||
|
}
|
||||||
|
private void button2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (tabControl1.SelectedIndex == 1)
|
||||||
|
saveIt();
|
||||||
|
else
|
||||||
|
simpleSave();
|
||||||
|
|
||||||
|
this.Close();
|
||||||
}
|
}
|
||||||
private void button2_Click(object sender, EventArgs e) { saveIt(); this.Close(); }
|
|
||||||
|
|
||||||
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,6 +73,12 @@
|
|||||||
<DependentUpon>PropertiesEditorForm.cs</DependentUpon>
|
<DependentUpon>PropertiesEditorForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="ServerManagementForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ServerManagementForm.Designer.cs">
|
||||||
|
<DependentUpon>ServerManagementForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<EmbeddedResource Include="ControlPanelForm.resx">
|
<EmbeddedResource Include="ControlPanelForm.resx">
|
||||||
<DependentUpon>ControlPanelForm.cs</DependentUpon>
|
<DependentUpon>ControlPanelForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@@ -94,6 +100,9 @@
|
|||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<EmbeddedResource Include="ServerManagementForm.resx">
|
||||||
|
<DependentUpon>ServerManagementForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<None Include="Properties\Settings.settings">
|
<None Include="Properties\Settings.settings">
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
|||||||
@@ -0,0 +1,386 @@
|
|||||||
|
|
||||||
|
namespace ServCreator
|
||||||
|
{
|
||||||
|
partial class ServerManagementForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServerManagementForm));
|
||||||
|
this.ipBanBox = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.ipTxt = new System.Windows.Forms.TextBox();
|
||||||
|
this.banIPBtn = new System.Windows.Forms.Button();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.reasonIpTxt = new System.Windows.Forms.RichTextBox();
|
||||||
|
this.playerMgmtBox = new System.Windows.Forms.GroupBox();
|
||||||
|
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.nicknameTb = new System.Windows.Forms.TextBox();
|
||||||
|
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.deopBtn = new System.Windows.Forms.Button();
|
||||||
|
this.opBtn = new System.Windows.Forms.Button();
|
||||||
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.gmBtn = new System.Windows.Forms.Button();
|
||||||
|
this.gmBox = new System.Windows.Forms.ComboBox();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||||
|
this.wlDelBtn = new System.Windows.Forms.Button();
|
||||||
|
this.wlAddBtn = new System.Windows.Forms.Button();
|
||||||
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.kickBtn = new System.Windows.Forms.Button();
|
||||||
|
this.banPlayerBtn = new System.Windows.Forms.Button();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.reasonPlayerTxt = new System.Windows.Forms.RichTextBox();
|
||||||
|
this.ipBanBox.SuspendLayout();
|
||||||
|
this.playerMgmtBox.SuspendLayout();
|
||||||
|
this.groupBox5.SuspendLayout();
|
||||||
|
this.groupBox4.SuspendLayout();
|
||||||
|
this.groupBox2.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
this.groupBox3.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// ipBanBox
|
||||||
|
//
|
||||||
|
this.ipBanBox.Controls.Add(this.label4);
|
||||||
|
this.ipBanBox.Controls.Add(this.ipTxt);
|
||||||
|
this.ipBanBox.Controls.Add(this.banIPBtn);
|
||||||
|
this.ipBanBox.Controls.Add(this.label3);
|
||||||
|
this.ipBanBox.Controls.Add(this.reasonIpTxt);
|
||||||
|
this.ipBanBox.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.ipBanBox.Location = new System.Drawing.Point(322, 19);
|
||||||
|
this.ipBanBox.Name = "ipBanBox";
|
||||||
|
this.ipBanBox.Size = new System.Drawing.Size(157, 135);
|
||||||
|
this.ipBanBox.TabIndex = 8;
|
||||||
|
this.ipBanBox.TabStop = false;
|
||||||
|
this.ipBanBox.Text = "Ban for Player IP";
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(6, 20);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(61, 13);
|
||||||
|
this.label4.TabIndex = 4;
|
||||||
|
this.label4.Text = "IP Address:";
|
||||||
|
//
|
||||||
|
// ipTxt
|
||||||
|
//
|
||||||
|
this.ipTxt.Location = new System.Drawing.Point(6, 36);
|
||||||
|
this.ipTxt.Name = "ipTxt";
|
||||||
|
this.ipTxt.Size = new System.Drawing.Size(145, 20);
|
||||||
|
this.ipTxt.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// banIPBtn
|
||||||
|
//
|
||||||
|
this.banIPBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.banIPBtn.Location = new System.Drawing.Point(6, 103);
|
||||||
|
this.banIPBtn.Name = "banIPBtn";
|
||||||
|
this.banIPBtn.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.banIPBtn.TabIndex = 2;
|
||||||
|
this.banIPBtn.Text = "Ban";
|
||||||
|
this.banIPBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.banIPBtn.Click += new System.EventHandler(this.banIPBtn_Click);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(3, 59);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(47, 13);
|
||||||
|
this.label3.TabIndex = 1;
|
||||||
|
this.label3.Text = "Reason:";
|
||||||
|
//
|
||||||
|
// reasonIpTxt
|
||||||
|
//
|
||||||
|
this.reasonIpTxt.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
this.reasonIpTxt.Location = new System.Drawing.Point(6, 75);
|
||||||
|
this.reasonIpTxt.Name = "reasonIpTxt";
|
||||||
|
this.reasonIpTxt.Size = new System.Drawing.Size(145, 21);
|
||||||
|
this.reasonIpTxt.TabIndex = 0;
|
||||||
|
this.reasonIpTxt.Text = "";
|
||||||
|
//
|
||||||
|
// playerMgmtBox
|
||||||
|
//
|
||||||
|
this.playerMgmtBox.Controls.Add(this.ipBanBox);
|
||||||
|
this.playerMgmtBox.Controls.Add(this.groupBox5);
|
||||||
|
this.playerMgmtBox.Controls.Add(this.groupBox4);
|
||||||
|
this.playerMgmtBox.Controls.Add(this.groupBox2);
|
||||||
|
this.playerMgmtBox.Controls.Add(this.groupBox1);
|
||||||
|
this.playerMgmtBox.Controls.Add(this.groupBox3);
|
||||||
|
this.playerMgmtBox.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.playerMgmtBox.Location = new System.Drawing.Point(12, 12);
|
||||||
|
this.playerMgmtBox.Name = "playerMgmtBox";
|
||||||
|
this.playerMgmtBox.Size = new System.Drawing.Size(488, 213);
|
||||||
|
this.playerMgmtBox.TabIndex = 9;
|
||||||
|
this.playerMgmtBox.TabStop = false;
|
||||||
|
this.playerMgmtBox.Text = "Player Management";
|
||||||
|
//
|
||||||
|
// groupBox5
|
||||||
|
//
|
||||||
|
this.groupBox5.Controls.Add(this.nicknameTb);
|
||||||
|
this.groupBox5.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox5.Location = new System.Drawing.Point(6, 19);
|
||||||
|
this.groupBox5.Name = "groupBox5";
|
||||||
|
this.groupBox5.Size = new System.Drawing.Size(145, 50);
|
||||||
|
this.groupBox5.TabIndex = 10;
|
||||||
|
this.groupBox5.TabStop = false;
|
||||||
|
this.groupBox5.Text = "Player Nickname";
|
||||||
|
//
|
||||||
|
// nicknameTb
|
||||||
|
//
|
||||||
|
this.nicknameTb.Location = new System.Drawing.Point(6, 21);
|
||||||
|
this.nicknameTb.Name = "nicknameTb";
|
||||||
|
this.nicknameTb.Size = new System.Drawing.Size(133, 20);
|
||||||
|
this.nicknameTb.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// groupBox4
|
||||||
|
//
|
||||||
|
this.groupBox4.Controls.Add(this.deopBtn);
|
||||||
|
this.groupBox4.Controls.Add(this.opBtn);
|
||||||
|
this.groupBox4.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox4.Location = new System.Drawing.Point(322, 160);
|
||||||
|
this.groupBox4.Name = "groupBox4";
|
||||||
|
this.groupBox4.Size = new System.Drawing.Size(157, 47);
|
||||||
|
this.groupBox4.TabIndex = 12;
|
||||||
|
this.groupBox4.TabStop = false;
|
||||||
|
this.groupBox4.Text = "Operator";
|
||||||
|
//
|
||||||
|
// deopBtn
|
||||||
|
//
|
||||||
|
this.deopBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.deopBtn.Location = new System.Drawing.Point(83, 16);
|
||||||
|
this.deopBtn.Name = "deopBtn";
|
||||||
|
this.deopBtn.Size = new System.Drawing.Size(68, 23);
|
||||||
|
this.deopBtn.TabIndex = 3;
|
||||||
|
this.deopBtn.Text = "Delete";
|
||||||
|
this.deopBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.deopBtn.Click += new System.EventHandler(this.deopBtn_Click);
|
||||||
|
//
|
||||||
|
// opBtn
|
||||||
|
//
|
||||||
|
this.opBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.opBtn.Location = new System.Drawing.Point(6, 16);
|
||||||
|
this.opBtn.Name = "opBtn";
|
||||||
|
this.opBtn.Size = new System.Drawing.Size(68, 23);
|
||||||
|
this.opBtn.TabIndex = 2;
|
||||||
|
this.opBtn.Text = "Give";
|
||||||
|
this.opBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.opBtn.Click += new System.EventHandler(this.opBtn_Click);
|
||||||
|
//
|
||||||
|
// groupBox2
|
||||||
|
//
|
||||||
|
this.groupBox2.Controls.Add(this.gmBtn);
|
||||||
|
this.groupBox2.Controls.Add(this.gmBox);
|
||||||
|
this.groupBox2.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox2.Location = new System.Drawing.Point(157, 128);
|
||||||
|
this.groupBox2.Name = "groupBox2";
|
||||||
|
this.groupBox2.Size = new System.Drawing.Size(159, 79);
|
||||||
|
this.groupBox2.TabIndex = 11;
|
||||||
|
this.groupBox2.TabStop = false;
|
||||||
|
this.groupBox2.Text = "Gamemode";
|
||||||
|
//
|
||||||
|
// gmBtn
|
||||||
|
//
|
||||||
|
this.gmBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.gmBtn.Location = new System.Drawing.Point(6, 47);
|
||||||
|
this.gmBtn.Name = "gmBtn";
|
||||||
|
this.gmBtn.Size = new System.Drawing.Size(147, 23);
|
||||||
|
this.gmBtn.TabIndex = 1;
|
||||||
|
this.gmBtn.Text = "Set Gamemode";
|
||||||
|
this.gmBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.gmBtn.Click += new System.EventHandler(this.gmBtn_Click);
|
||||||
|
//
|
||||||
|
// gmBox
|
||||||
|
//
|
||||||
|
this.gmBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.gmBox.FormattingEnabled = true;
|
||||||
|
this.gmBox.Items.AddRange(new object[] {
|
||||||
|
"survival",
|
||||||
|
"creative",
|
||||||
|
"adventure",
|
||||||
|
"spectator"});
|
||||||
|
this.gmBox.Location = new System.Drawing.Point(6, 19);
|
||||||
|
this.gmBox.Name = "gmBox";
|
||||||
|
this.gmBox.Size = new System.Drawing.Size(147, 21);
|
||||||
|
this.gmBox.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.checkBox1);
|
||||||
|
this.groupBox1.Controls.Add(this.wlDelBtn);
|
||||||
|
this.groupBox1.Controls.Add(this.wlAddBtn);
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(157, 19);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(159, 72);
|
||||||
|
this.groupBox1.TabIndex = 10;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "White-list";
|
||||||
|
//
|
||||||
|
// checkBox1
|
||||||
|
//
|
||||||
|
this.checkBox1.AutoSize = true;
|
||||||
|
this.checkBox1.Location = new System.Drawing.Point(6, 48);
|
||||||
|
this.checkBox1.Name = "checkBox1";
|
||||||
|
this.checkBox1.Size = new System.Drawing.Size(105, 17);
|
||||||
|
this.checkBox1.TabIndex = 4;
|
||||||
|
this.checkBox1.Text = "Enable White-list";
|
||||||
|
this.checkBox1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// wlDelBtn
|
||||||
|
//
|
||||||
|
this.wlDelBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.wlDelBtn.Location = new System.Drawing.Point(85, 19);
|
||||||
|
this.wlDelBtn.Name = "wlDelBtn";
|
||||||
|
this.wlDelBtn.Size = new System.Drawing.Size(68, 23);
|
||||||
|
this.wlDelBtn.TabIndex = 3;
|
||||||
|
this.wlDelBtn.Text = "Delete";
|
||||||
|
this.wlDelBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.wlDelBtn.Click += new System.EventHandler(this.wlDelBtn_Click);
|
||||||
|
//
|
||||||
|
// wlAddBtn
|
||||||
|
//
|
||||||
|
this.wlAddBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.wlAddBtn.Location = new System.Drawing.Point(6, 19);
|
||||||
|
this.wlAddBtn.Name = "wlAddBtn";
|
||||||
|
this.wlAddBtn.Size = new System.Drawing.Size(68, 23);
|
||||||
|
this.wlAddBtn.TabIndex = 2;
|
||||||
|
this.wlAddBtn.Text = "Add";
|
||||||
|
this.wlAddBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.wlAddBtn.Click += new System.EventHandler(this.wlAddBtn_Click);
|
||||||
|
//
|
||||||
|
// groupBox3
|
||||||
|
//
|
||||||
|
this.groupBox3.Controls.Add(this.kickBtn);
|
||||||
|
this.groupBox3.Controls.Add(this.banPlayerBtn);
|
||||||
|
this.groupBox3.Controls.Add(this.label2);
|
||||||
|
this.groupBox3.Controls.Add(this.reasonPlayerTxt);
|
||||||
|
this.groupBox3.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.groupBox3.Location = new System.Drawing.Point(6, 75);
|
||||||
|
this.groupBox3.Name = "groupBox3";
|
||||||
|
this.groupBox3.Size = new System.Drawing.Size(145, 132);
|
||||||
|
this.groupBox3.TabIndex = 3;
|
||||||
|
this.groupBox3.TabStop = false;
|
||||||
|
this.groupBox3.Text = "Ban or Kick Player";
|
||||||
|
//
|
||||||
|
// kickBtn
|
||||||
|
//
|
||||||
|
this.kickBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.kickBtn.Location = new System.Drawing.Point(77, 101);
|
||||||
|
this.kickBtn.Name = "kickBtn";
|
||||||
|
this.kickBtn.Size = new System.Drawing.Size(62, 23);
|
||||||
|
this.kickBtn.TabIndex = 3;
|
||||||
|
this.kickBtn.Text = "Kick";
|
||||||
|
this.kickBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.kickBtn.Click += new System.EventHandler(this.kickBtn_Click);
|
||||||
|
//
|
||||||
|
// banPlayerBtn
|
||||||
|
//
|
||||||
|
this.banPlayerBtn.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.banPlayerBtn.Location = new System.Drawing.Point(6, 101);
|
||||||
|
this.banPlayerBtn.Name = "banPlayerBtn";
|
||||||
|
this.banPlayerBtn.Size = new System.Drawing.Size(62, 23);
|
||||||
|
this.banPlayerBtn.TabIndex = 2;
|
||||||
|
this.banPlayerBtn.Text = "Ban";
|
||||||
|
this.banPlayerBtn.UseVisualStyleBackColor = true;
|
||||||
|
this.banPlayerBtn.Click += new System.EventHandler(this.banPlayerBtn_Click);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(7, 20);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(47, 13);
|
||||||
|
this.label2.TabIndex = 1;
|
||||||
|
this.label2.Text = "Reason:";
|
||||||
|
//
|
||||||
|
// reasonPlayerTxt
|
||||||
|
//
|
||||||
|
this.reasonPlayerTxt.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
this.reasonPlayerTxt.Location = new System.Drawing.Point(6, 36);
|
||||||
|
this.reasonPlayerTxt.Name = "reasonPlayerTxt";
|
||||||
|
this.reasonPlayerTxt.Size = new System.Drawing.Size(133, 59);
|
||||||
|
this.reasonPlayerTxt.TabIndex = 0;
|
||||||
|
this.reasonPlayerTxt.Text = "";
|
||||||
|
//
|
||||||
|
// ServerManagementForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(40)))), ((int)(((byte)(40)))));
|
||||||
|
this.ClientSize = new System.Drawing.Size(509, 235);
|
||||||
|
this.Controls.Add(this.playerMgmtBox);
|
||||||
|
this.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "ServerManagementForm";
|
||||||
|
this.Text = "Manage with Server - ServManager for Minecraft";
|
||||||
|
this.Load += new System.EventHandler(this.ServerManagementForm_Load);
|
||||||
|
this.ipBanBox.ResumeLayout(false);
|
||||||
|
this.ipBanBox.PerformLayout();
|
||||||
|
this.playerMgmtBox.ResumeLayout(false);
|
||||||
|
this.groupBox5.ResumeLayout(false);
|
||||||
|
this.groupBox5.PerformLayout();
|
||||||
|
this.groupBox4.ResumeLayout(false);
|
||||||
|
this.groupBox2.ResumeLayout(false);
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
this.groupBox3.ResumeLayout(false);
|
||||||
|
this.groupBox3.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox ipBanBox;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.TextBox ipTxt;
|
||||||
|
private System.Windows.Forms.Button banIPBtn;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.RichTextBox reasonIpTxt;
|
||||||
|
private System.Windows.Forms.GroupBox playerMgmtBox;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox3;
|
||||||
|
private System.Windows.Forms.Button kickBtn;
|
||||||
|
private System.Windows.Forms.Button banPlayerBtn;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.RichTextBox reasonPlayerTxt;
|
||||||
|
private System.Windows.Forms.Button opBtn;
|
||||||
|
private System.Windows.Forms.TextBox nicknameTb;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Button wlAddBtn;
|
||||||
|
private System.Windows.Forms.Button wlDelBtn;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox5;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox4;
|
||||||
|
private System.Windows.Forms.Button deopBtn;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||||||
|
private System.Windows.Forms.Button gmBtn;
|
||||||
|
private System.Windows.Forms.ComboBox gmBox;
|
||||||
|
private System.Windows.Forms.CheckBox checkBox1;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace ServCreator
|
||||||
|
{
|
||||||
|
public partial class ServerManagementForm : Form
|
||||||
|
{
|
||||||
|
ControlPanelForm controlPanel;
|
||||||
|
string config;
|
||||||
|
public ServerManagementForm(string configFile)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
config = configFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ServerManagementForm_Load(object sender, EventArgs e) { controlPanel = new ControlPanelForm(config); }
|
||||||
|
|
||||||
|
|
||||||
|
private void banPlayerBtn_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (reasonPlayerTxt.Text != "")
|
||||||
|
controlPanel.process.StandardInput.WriteLine("ban " + nicknameTb.Text + " " + reasonPlayerTxt.Text);
|
||||||
|
else
|
||||||
|
controlPanel.process.StandardInput.WriteLine("ban " + nicknameTb.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void banIPBtn_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (reasonIpTxt.Text != "")
|
||||||
|
controlPanel.process.StandardInput.WriteLine("ban " + ipTxt.Text + " " + reasonIpTxt.Text);
|
||||||
|
else
|
||||||
|
controlPanel.process.StandardInput.WriteLine("ban " + ipTxt.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void kickBtn_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (reasonPlayerTxt.Text != "")
|
||||||
|
controlPanel.process.StandardInput.WriteLine("kick " + nicknameTb.Text + " " + reasonPlayerTxt.Text);
|
||||||
|
else
|
||||||
|
controlPanel.process.StandardInput.WriteLine("kick " + nicknameTb.Text);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void opBtn_Click(object sender, EventArgs e) { controlPanel.process.StandardInput.WriteLine("op " + nicknameTb.Text); }
|
||||||
|
|
||||||
|
private void gmBtn_Click(object sender, EventArgs e) { controlPanel.process.StandardInput.WriteLine("gamemode " + gmBox.Text + " " + nicknameTb.Text); }
|
||||||
|
|
||||||
|
private void wlAddBtn_Click(object sender, EventArgs e) { controlPanel.process.StandardInput.WriteLine("whitelist add " + nicknameTb.Text); }
|
||||||
|
|
||||||
|
private void wlDelBtn_Click(object sender, EventArgs e) { controlPanel.process.StandardInput.WriteLine("whitelist remove " + nicknameTb.Text); }
|
||||||
|
|
||||||
|
private void deopBtn_Click(object sender, EventArgs e) { controlPanel.process.StandardInput.WriteLine("deop " + nicknameTb.Text); }
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
4ad4f63bfa28ace2303dc2dd63fe3006e83a3680
|
df26dbb6470533f2ee8217b502d2b28017069b09
|
||||||
|
|||||||
@@ -28,3 +28,4 @@ C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCre
|
|||||||
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.csproj.CopyComplete
|
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.csproj.CopyComplete
|
||||||
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.exe
|
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.exe
|
||||||
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.pdb
|
C:\Users\Krzysiek\Documents\GitHub\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.pdb
|
||||||
|
D:\GitHub (krzysiek-smaga@outlook.com)\ServCreator-for-Minecraft\ServCreator\ServCreator\obj\Debug\ServCreator.ServerManagementForm.resources
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user