Struct ConsoleCommandSenderData
Contains information about the source of a console command.
public readonly struct ConsoleCommandSenderData
- Inherited Members
Constructors
ConsoleCommandSenderData(ConsoleCommandSender, nint)
Initializes a new instance of the ConsoleCommandSenderData struct.
public ConsoleCommandSenderData(ConsoleCommandSender sender, nint handle)
Parameters
senderConsoleCommandSenderThe type of sender.
handlenintThe unmanaged handle to the sender object.
Fields
Sender
The type of command sender.
public readonly ConsoleCommandSender Sender
Field Value
Properties
Handler
Gets the message handler if the sender is custom; otherwise, null.
public ConsoleMessageHandler? Handler { get; }
Property Value
Player
Gets the player if the sender is a player; otherwise, null.
public IPlayer? Player { get; }