Class ConsoleCommandSender
Represents a console command sender.
[EventParameter]
public record ConsoleCommandSender : IEquatable<ConsoleCommandSender>
- Inheritance
-
ConsoleCommandSender
- Implements
- Inherited Members
Constructors
ConsoleCommandSender(ConsoleCommandSender)
protected ConsoleCommandSender(ConsoleCommandSender original)
Parameters
originalConsoleCommandSender
ConsoleCommandSender(Player?, bool, bool, Action<string>?)
Represents a console command sender.
public ConsoleCommandSender(Player? Player, bool IsConsole, bool IsCustom, Action<string>? HandleConsoleMessage)
Parameters
PlayerPlayerThe player that sent the command.
IsConsoleboolA value indicating whether the command was sent by the console or a script.
IsCustomboolA value indicating whether the command was sent by as custom component.
HandleConsoleMessageAction<string>A function which can be used to return a console message to the sender.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
HandleConsoleMessage
A function which can be used to return a console message to the sender.
public Action<string>? HandleConsoleMessage { get; init; }
Property Value
IsConsole
A value indicating whether the command was sent by the console or a script.
public bool IsConsole { get; init; }
Property Value
IsCustom
A value indicating whether the command was sent by as custom component.
public bool IsCustom { get; init; }
Property Value
Player
The player that sent the command.
public Player? Player { get; init; }
Property Value
Methods
Deconstruct(out Player?, out bool, out bool, out Action<string>?)
public void Deconstruct(out Player? Player, out bool IsConsole, out bool IsCustom, out Action<string>? HandleConsoleMessage)
Parameters
Equals(ConsoleCommandSender?)
public virtual bool Equals(ConsoleCommandSender? other)
Parameters
otherConsoleCommandSender
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ConsoleCommandSender?, ConsoleCommandSender?)
public static bool operator ==(ConsoleCommandSender? left, ConsoleCommandSender? right)
Parameters
leftConsoleCommandSenderrightConsoleCommandSender
Returns
operator !=(ConsoleCommandSender?, ConsoleCommandSender?)
public static bool operator !=(ConsoleCommandSender? left, ConsoleCommandSender? right)
Parameters
leftConsoleCommandSenderrightConsoleCommandSender