Skip to content

SuggestionContext

Namespace Mc.Scripting.Commands · Kind class (sealed)

public sealed class SuggestionContext

What an asynchronous suggestion provider gets: a copy of the request (the native command context does not outlive the call that started the provider).

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).

public int PermissionLevel { get; }

The permission level of the asker.

public Player? Player { get; }

The player asking, null for the console.

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.

Entity · Player