private void Chat_Load(object sender, EventArgs e) { this.Text = "Chat/Commands Only - " + Server.name + " (MCDawn " + Server.Version + ")"; txtLog.AppendText("MCDawn Mini-Console Initiated - Chat/Commands only. You may minimize the Main Console." + Environment.NewLine); txtLog.AppendText("Use / for commands, # for opchat, ; for adminchat, and @ for whisper." + Environment.NewLine); Server.s.OnLog += Log; Server.s.OnCommand += WriteCommand; Server.s.OnSystem += Log; thisChat = this; }
private void btnOpenChat_Click(object sender, EventArgs e) { try { Chat chat = new Chat(); chat.Show(); miniConsole = true; } catch { } }