McBrigadierSource

Properties

Link copied to clipboard
abstract val executor: McEntity?

Gets the entity executing this command.

Link copied to clipboard
open val isBound: Boolean

Checks if the platform library is initialized for this source.

Link copied to clipboard
open val isSilent: Boolean

Checks if the source suppresses command feedback.

Link copied to clipboard
abstract val source: McCommandSource

Gets the command source that initiated/triggered the execution of a command.

Functions

Link copied to clipboard
abstract fun <T> getInstance(): T

Gets the server's implementation instance for this source.

Link copied to clipboard
open fun sendFailure(exception: CommandSyntaxException)

Sends the exception's message to the source as a command failure, unless the source isSilent.

Link copied to clipboard
open fun sendFeedback(text: String)

Sends command feedback to the source, unless the source isSilent.