Class ChatCommandSendEvent
Namespace: Void.Minecraft.Events.Chat
Assembly: Void.Minecraft.dll
Requests that a command be sent on behalf of a Minecraft player.
public record ChatCommandSendEvent : IScopedEventWithResult<ChatSendResult>, IScopedEvent, IEventWithResult<ChatSendResult>, IEvent, IEquatable<ChatCommandSendEvent>Inheritance
Implements
IScopedEventWithResult<ChatSendResult>, IScopedEvent, IEventWithResult<ChatSendResult>, IEvent, IEquatable<ChatCommandSendEvent>
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ChatCommandSendEvent(IPlayer, string, Side)
Requests that a command be sent on behalf of a Minecraft player.
public ChatCommandSendEvent(IPlayer Player, string Command, Side Origin)Parameters
Player IPlayer
The player for whom the command is sent.
Command string
The command text to send.
Origin Side
The pipeline side that initiated the request.
Properties
Command
The command text to send.
public string Command { get; init; }Property Value
Origin
The pipeline side that initiated the request.
public Side Origin { get; init; }Property Value
Player
The player for whom the command is sent.
public IPlayer Player { get; init; }Property Value
Result
Gets or sets the outcome reported by the handler that attempted to send the command.
public ChatSendResult Result { get; set; }