πͺ Action
The action system offers pre-set effects provided by the plugin. However, you can also add your own actions by using the API. This system can be applied anywhere an action can be triggered, like when you successfully catch a fish, when a competition ends and rewards are given out, or when selling fish.
Action is composed of three parts
type: The action type
value: The arguments of the action
chance: Optional (0~1 Default: 1)If the value is an integer or a double value, you can use expression for instance
exp_action:
type: exp
value: '{level} * 3'Action Library
message (Send a message to player)
messages_action:
type: message
value:
- '<#FF4500>[1st] Congratulations! You got the first prize!'random-message (Send a random message from the list)
message:
type: random-message
value:
- 'Message 1'
- 'Message 2'
- 'Message 3'broadcast (Send a message to online players)
command (Execute a console command)
player-command (Execute a command as player)
random-command (Execute a random console command from list)
close-inv (Close the inventory player is currently opening)
actionbar
random-actionbar
mending (Give player exp that would be applied to mending)
exp (Give player exp that would directly go into levels)
chain (Execute actions as a group)
delay (Delay x ticks)
timer
title
random-title
sound
potion-effect
plugin-exp (Experience from other plugins for instance a job/skill plugin)
conditional (Actions can only be triggered when player satisfy the conditions)
priority (Execute the first action group that meets the conditions.)
fake-item (Display a fake item for some time) Note: "opposite-yaw" and "yaw" cannot be used at the same time
hologram (Display a hologram for some time)
fish-finder
message-nearby
command-nearby
actionbar-nearby
title-nearby
food
saturation
item-amount
durability
give-item
give-money
take-money
level
context-arg
drop-random-items (Drop random items based on current conditions)