void btnEventTriggerAdd_Click(object sender, MVControlEventArgs e) { try { EventTrigger trigger = new EventTrigger( (string)chcEventTriggerEvent.Data[chcEventTriggerEvent.Selected], (Webhook)chcEventsWebhook.Data[chcEventsWebhook.Selected], edtEventsMessage.Text, true); EventTriggers.Add(trigger); RefreshEventTriggerList(); SaveSettings(); } catch (Exception ex) { Util.WriteToChat("Error adding new EventTrigger: " + ex.Message); Util.LogError(ex); } }