RegistrableAction

@Since(version = "2.2")
interface RegistrableAction : Registrable

This interface is used to create registrable actions.

Inheritors

Properties

Link copied to clipboard
@Since(version = "2.2")
abstract val aliases: List<String>

The aliases for this registrable.

Functions

Link copied to clipboard
@Since(version = "2.2")
abstract fun execute(event: Event, trigger: RegistrableTrigger, arguments: List<String>, target: TargetType): EventModifications?

When an event happens and a trigger is fired, this method is called. The arguments are the arguments that were passed to the trigger, and the target is the target of the action.