Table of Contents

Struct ConsoleCommandSenderData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

sender ConsoleCommandSender

The type of sender.

handle nint

The unmanaged handle to the sender object.

Fields

Sender

The type of command sender.

public readonly ConsoleCommandSender Sender

Field Value

ConsoleCommandSender

Properties

Handler

Gets the message handler if the sender is custom; otherwise, null.

public ConsoleMessageHandler? Handler { get; }

Property Value

ConsoleMessageHandler?

Player

Gets the player if the sender is a player; otherwise, null.

public IPlayer? Player { get; }

Property Value

IPlayer?