SuggestionContext
Namespace Mc.Scripting.Commands · Kind class (sealed)
public sealed class SuggestionContextWhat an asynchronous suggestion provider gets: a copy of the request (the native command context does not outlive the call that started the provider).
Properties
Section titled “Properties”| Member | Description |
|---|---|
string Input { get; } |
The command line typed so far (without the leading slash). |
int PermissionLevel { get; } |
The permission level of the asker. |
Player? Player { get; } |
The player asking, null for the console. |
Entity Sender { get; } |
The player (or entity) asking; Entity.Null for the console. |
string Typed { get; } |
The text typed so far for the argument being completed. |
public string Input { get; }The command line typed so far (without the leading slash).
PermissionLevel
Section titled “PermissionLevel”public int PermissionLevel { get; }The permission level of the asker.
Player
Section titled “Player”public Player? Player { get; }The player asking, null for the console.
Sender
Section titled “Sender”public Entity Sender { get; }The player (or entity) asking; Entity.Null for the console.
public string Typed { get; }The text typed so far for the argument being completed.