β’οΈActions
Actions that can be performed after a requirement
With a requirement, you can define actions for both success and failure. Here are the actions that can be performed.
Example: You will need to create an action list like this:
success:
- type: player_command
commands:
- "firstcommand"
- "seconds commands %player%"
- type: console_command
commands:
- "firstcommand"
- "seconds commands %player%"
- type: message
messages:
- "firstcommand"
- "seconds commands %player%" You can add a delay, in ticks, for each item in the list below. Do it like this:
success:
- type: player_command
delay: 10 # 10 ticks
commands:
- "firstcommand"
- "seconds commands %player%"You can add a chance for each item in the list below. Do it like this:
zMenu
Actions compatible with Dialogs are now marked with a badge:
Actions not compatible are marked with:
player command
player commandExecutes commands as the player. You can also send the command in the player's chat.
random player command
random player commandExecutes random commands as the player. You can also send the command in the player's chat.
This feature is only available with zMenu+ !
console command
console commandExecutes commands as the console.
random console command
random console commandExecute random commands from the list.
This feature is only available with zMenu+ !
player command as op
player command as opAllows the execution of a command while being op.
Attention, this action will give all the permissions to the player while they execute the command. Please be careful when using this action.
message
messageSends a message to the player. You can use placeholders, color codes, and format codes. The MiniMessage format is enabled by default if your server supports it.
broadcast
broadcastSends a message to all online players. You can use placeholders, color codes, and format codes. The MiniMessage format is enabled by default if your server supports it.
%sender% is the name of the player sending the broadcast
%receiver% is the name of the player who will receive the message.
You can set a list of requirements to send a message to certain players.
chat
chatSends messages on behalf of the player. You can use placeholders, color codes, and format codes. MiniMessage format is enabled by default if your server supports it.
close
closeCloses the player's inventory.
inventory
inventoryOpens an inventory.
connect
connectAllows sending the player to another server, only works with BungeeCord and Velocity.
sound
soundSend a sound to a player, you must use XSound for sound.
broadcast sound
broadcast soundSend a sound to the online players, you must use XSound for sound.
data
dataUpdate player data.
You can use mathematical expressions if you set math to true, this allows you to do more complex actions. Work only with ADD and SUBTRACT.
refresh
refreshRefresh current button. Works only in click requirement.
If you update the status of a player with orders, to be sure that the inventory update is done correctly, you must put a delay of 1 tick.
refresh inventory
refresh inventoryRefreshes the currently open inventory.
back
backReturn to previous inventory.
shopkeeper
shopkeeperOpen a Shopkeeper trading inventory
book
bookOpens a book for the player. You can specify the title, author, and pages of the book.
actionbar
actionbarAllows you to send a message in the action bar of the player. You can use placeholders and color/format codes here. MiniMessage format is enabled by default if your server supports it.
withdraw
withdrawAllows you to withdraw money from the playerβs account. Works with the BeastTokens, Vault, PlayerPoints, ElementalTokens, ElementalGems, Level, Experience, zEssentials, EcoBits, CoinsEngine and VotingPlugin. CurrenciesAPI : https://github.com/Traqueur-dev/CurrenciesAPI
deposit
depositAllows you to deposit money from the playerβs account. Works with the BeastTokens, Vault, PlayerPoints, ElementalTokens, ElementalGems, Level, Experience, zEssentials, EcoBits, CoinsEngine and VotingPlugin. CurrenciesAPI : https://github.com/Traqueur-dev/CurrenciesAPI
title
titleSend a title. You can use placeholders and color/format codes here. MiniMessage format is enabled by default if your server supports it.
teleport
teleportTeleport a player
discord
discordAllow to send a discord webhook. You can add a embeds, username, tts etc.
discord component
discord componentSend a webhook discord components. To generate your component you must go to the site https://discord.builders/, then you must copy the result json. You can simplify your json into one line here.
permission set
permission setAllows you to add or remove a permission from a player, works with luckperms.
toast
toastAllows you to send a toast message to the player. You can use a material from another plugin to define the material and model id to use.
zQuests
Lists of actions working with the zQuests plugin.
start quest
start questAllows you to start several quests.
zJobs
Lists of actions working with the zJobs plugin.
zjobs add points
zjobs add pointsAllows you to add job points
zjobs claim reward
zjobs claim rewardAllows you to claim a reward
zjobs remove points
zjobs remove pointsAllows you to remove job points
Last updated