Table of Contents

Class SendingValidCommandEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

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

player Player
command ICommand
commandType CommandType
query string
response string

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

bool

Player

Gets the player who is sending the command.

public Player Player { get; }

Property Value

Player

Query

Gets the command query.

public string Query { get; }

Property Value

string

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

string

Type

Gets the command type.

public CommandType Type { get; }

Property Value

CommandType