/// <summary> /// Raises the <see cref="RconCommand" /> event. /// </summary> /// <param name="e">An <see cref="RconEventArgs" /> that contains the event data. </param> protected virtual void OnRconCommand(RconEventArgs e) { if (RconCommand != null) RconCommand(this, e); }
internal bool OnRconCommand(string command) { var args = new RconEventArgs(command); OnRconCommand(args); return args.Success; }
/// <summary> /// Raises the <see cref="RconCommand" /> event. /// </summary> /// <param name="e">An <see cref="RconEventArgs" /> that contains the event data. </param> protected virtual void OnRconCommand(RconEventArgs e) { RconCommand?.Invoke(this, e); }