ToolContext

interface ToolContext

Represents a context object that provides contextual data to tools during execution. Implementations of this interface may supply platform-specific information, such as a reference to the player executing a command or other relevant data.

Properties

Link copied to clipboard

Provides a convenient extension property to retrieve the Bukkit Player instance, if available, associated with a given ToolContext.

Functions

Link copied to clipboard
abstract fun <T : Any> getPlayer(): T?