using System; namespace SAMP.API.EventData { public class PlayerCommandTextEventArgs : EventArgs { #region Class Variables private string m_strMessage; private bool m_bHandled; #endregion #region Constructor /// /// Initializes a new instance of the class. /// /// The chat message. public PlayerCommandTextEventArgs(string message) { this.m_strMessage = message; this.m_bHandled = false; } #endregion #region Accessors & Mutators /// /// Gets the chat message associated with this event. /// public string Message { get { return this.m_strMessage; } } /// /// Gets or sets whether the event was handled. Returning TRUE will prevent the 'SERVER: Unknown Command' message being shown. /// public bool Handled { get { return this.m_bHandled; } set { this.m_bHandled = value; } } #endregion }; };