Actions

Action allows server owner to do action when an event is triggered.

Actions are stored under the /plugins/FancyWaystones/actions directory. You can create your own action YAML file or modify the existing ones.

Configuration Structure

Enable: [true (default)|false]
Event: [event name]
Ignore Cancelled: [true|false (default)]
Action: [action]
  • Enable: Whether this action is enabled or not. Disabled events are not triggered!

  • Event: The event name you want this action to be triggered on.

  • Ignore Cancelled: Whether this action should be triggered if the event is cancelled by other action or 3rd party plugin. If this is true, the action will trigger anyway even if the event is cancelled.

  • Action: The action itself, what to do on this situation. See configuration structure below.

You can see list of available FancyWaystones events at here.

The Action

CANCEL_EVENT

Cancel the event, preventing the plugin from doing the task (i.e. cancelling WaystoneTeleportEvent will prevent the player from teleporting).

Type: CANCEL_EVENT

STOP

Stop the action from doing any further action (in the file).

CONSOLE_COMMAND

Executes command as console

COMMAND

Execute command as the player whose involved in the event (e.g. the player that is about to teleport in WaystoneTeleportEvent).

CANCEL_AND_STOP

Mark the event cancelled, and stop the action from doing any further action (in the file).

COMPOUND

Executes a list of actions.

UNCANCEL_EVENT

Mark event as un-cancelled.

CONDITIONAL

Execute action if the condition is true or false

You can see list of conditions and criterias here.

MESSAGE

Send message to the player (or console if no player is involved).

DELAYED

Delay executing an action.

Example

Last updated