Built-in Actions
Actions allow you to define a variety of things to run whenever a pouchquest gets redeemed.completed.
Actions support PlaceholderAPI and has 2 built-in placeholders:
- %player% - Replaced with the player name.
- {random:<min>-<max>} - Replaced with a random number between those bounds.
- Broadcast
- Arguments:
- text: Text to send. Formatted in MiniMessage.
- Example: "[Broadcast] text=<green>Test Broadcast"
- Arguments:
- Console
- Arguments:
- cmd: Command to execute as console.
- Example: "[Console] cmd=say Hello!"
- Arguments:
- GiveEffect
- Arguments:
- type: Potion effect type. A list is available here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
- strength: Strength of the effect. Starts at 0.
- duration: Duration in seconds.
- Example: "[GiveEffect] type=SPEED;;strength=2;;duration=30"
- Arguments:
- GiveFood
- Arguments:
- amount: Amount of food points to give.
- Example: "[GiveFood] amount=5"
- Arguments:
- GiveHealth
- Arguments:
- amount: Amount of health to give. 1 health equals to 1/2 heart.
- Example: "[GiveHealth] amount=6"
- Arguments:
- Message
- Arguments:
- text: Text to send. Formatted in MiniMessage.
- Example: "[Message] text=<green>Test Message"
- Arguments:
- Sudo
- Arguments:
- cmd: Command to execute as player.
- Example: "[Sudo] cmd=say Hello!"
- Arguments:
- PlaySound
- Arguments:
- sound: Sound to play. This needs to be a full Minecraft sound key. Here is a list: https://minecraft.wiki/w/Sounds.json
- source: Sound source. Available values: AMBIENT, BLOCK, HOSTILE, MASTER, MUSIC, NEUTRAL, PLAYER, RECORD, VOICE, WEATHER. Defaults to AMBIENT.
- volume: Sound volume. Usually goes from 0.0 to 1.0. Defaults to 1.0.
- pitch: Sound pitch. Usually goes from 0.0 to 1.0. Defaults to 1.0.
- Example: "[PlaySound] sound=block.note_block.bell;;source=MUSIC;;volume=1.0;;pitch=0.5"
- Arguments:
- Title
- Arguments:
- title: Title to send. Formatted in MiniMessage.
- subtitle: Optional subtitle to send. Also formatted in MiniMessage.
- fadeIn: Fade in time.
- stay: How long the title stays on screen.
- fadeOut: Fade out time.
- Example: "[Title] title=<green>Test;;subtitle=<yellow>Test 2;;fadeIn=50;;stay=100;;fadeOut=50"
- Arguments:
If you need more actions, contact me on Discord!