Class SendingValidCommandEventArgs
Contains all information before a player sends the command.
public class SendingValidCommandEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
SendingValidCommandEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
SendingValidCommandEventArgs(Player, ICommand, CommandType, string, string)
Initializes a new instance of the SendingValidCommandEventArgs class.
public SendingValidCommandEventArgs(Player player, ICommand command, CommandType commandType, string query, string response)
Parameters
Properties
Command
Gets the command interface.
public ICommand Command { get; }
Property Value
- ICommand
IsAllowed
Gets or sets a value indicating whether the player can send the command.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the player who is sending the command.
public Player Player { get; }
Property Value
Query
Gets the command query.
public string Query { get; }
Property Value
Response
Gets or sets the response of the command. If this value is null, the response will stay unchanged.
public string Response { get; set; }
Property Value
Type
Gets the command type.
public CommandType Type { get; }
Property Value
- CommandType