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).
Type: COMMAND
Command: "say i'm teleporting! good bye!"
Type: CANCEL_AND_STOP
Type: COMPOUND
Actions:
- Type: COMMAND
Command: "say this command is executed first"
- Type: COMMAND
Command: "say this command is executed second"
- Type: COMPOUND
Actions:
- Type: COMMAND
Command: "say you can put COMPOUND in another COMPOUND!"
Type: UNCANCEL_EVENT
Type: CONDITIONAL
Condition:
Criteria: HAS_PERMISSION
Permission: "iam.vip"
If True:
Type: COMMAND
Command: "say i am vip"
If False:
Type: CONDITIONAL
Criteria: IS_CANCELLED
If True:
Type: UNCANCEL_EVENT
Type: MESSAGE
Message: "Hello, {player_name}"
Type: DELAYED
Delay: "5m 15s"
Action:
Type: MESSAGE
Message: "This action is executed after 5 minutes and 15 seconds"
Enable: true
Event: WaystoneBreakEvent
Ignore Cancelled: false
Action:
Type: COMPOUND
Actions:
- Type: COMMAND
Command: "say I broke a waystone!"
- Type: CONSOLE_COMMAND
Command: "minecraft:give {player_name} minecraft:diamond 1"
- Type: CONDITIONAL
Condition:
Criteria: HAS_PERMISSION
Permission: "waystone.break.notify"
If True:
Type: COMMAND
Command: "say {player_name} has permission to break waystones!"
If False:
Type: COMMAND
Command: "say {player_name} does not have permission to break waystones!"
- Type: COMPOUND
Actions:
- Type: COMMAND
Command: "say This is the first command in a compound action."
- Type: CONDITIONAL
Condition:
Criteria: HAS_PERMISSION
Permission: "waystone.break.reward"
If True:
Type: CANCEL_EVENT
If False:
Type: STOP
- Type: MESSAGE
Message: "You have broken a waystone!"
- Type: DELAYED
Delay: 1s
Action:
Type: COMMAND
Command: "say This command is executed after a delay of 1 second."