AlexandriaCommand

abstract class AlexandriaCommand<C : Audience>(hook: AlexandriaHook<*>, val manager: CommandManager<C>)

Base implementation for an AlexandriaHook's command, used to control aspects of the hook.

This uses the Cloud command framework, and defines certain inbuilt commands which are common across all Alexandria hooks. Some utility methods for working with audiences are also provided.

Constructors

Link copied to clipboard
constructor(hook: AlexandriaHook<*>, manager: CommandManager<C>)

Properties

Link copied to clipboard
val manager: CommandManager<C>
Link copied to clipboard
Link copied to clipboard
val root: @NonNull Command.Builder<C>

Functions

Link copied to clipboard
fun Command.Builder<C>.axHandler(block: (CommandContext<C>) -> Unit): @NonNull Command.Builder<C>
Link copied to clipboard
fun Command.Builder<C>.axPermission(permission: String): @NonNull Command.Builder<C>
Link copied to clipboard
fun error(text: Message): Nothing
Link copied to clipboard
fun <T : Any> MessageProxy<T>.forAudience(sender: Audience): T
Link copied to clipboard
fun mustBePlayer(sender: C): Nothing
Link copied to clipboard
fun Message.sendTo(audience: Audience)