public static void SendMessage(this Extension E, PlayerSendMessageEventArgs e) { E.Contractor.SendToServer(HMessage.Construct(Data.Default.HostSendMessage, e.PlayerID, e.Message)); }
private void OnPlayerMessage(HMessage obj) { try { var args = new PlayerSendMessageEventArgs(obj); if (MPmChckBx.Checked) E.SendMessage(args); } catch (Exception error) { MessageBox.Show(error.ToString()); } }