CommandSender

interface CommandSender

Entity that can execute commands (e.g. player, console, remote admin, script).

KTale intentionally models this as a capability surface, not as a concrete actor hierarchy.

Properties

Link copied to clipboard
abstract val name: String

Display name of the sender.

Functions

Link copied to clipboard
abstract fun hasPermission(permission: Permission): Boolean

Checks whether the sender has permission.

Link copied to clipboard
abstract fun sendMessage(message: String)

Sends a message to the sender.