☒️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: Dialogs

Actions not compatible are marked with: Dialogs

player command

Dialogs βœ…

Executes commands as the player. You can also send the command in the player's chat.


random player command

Dialogs βœ…

Executes random commands as the player. You can also send the command in the player's chat.


console command

Dialogs βœ…

Executes commands as the console.


random console command

Dialogs βœ…

Execute random commands from the list.


player command as op

Dialogs βœ…

Allows the execution of a command while being op.


message

Dialogs βœ…

Sends 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

Dialogs βœ…

Sends 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

Dialogs βœ…

Sends 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

Dialogs ❌

Closes the player's inventory.


inventory

Dialogs βœ…

Opens an inventory.

connect

Dialogs βœ…

Allows sending the player to another server, only works with BungeeCord and Velocity.


sound

Dialogs βœ…

Send a sound to a player, you must use XSound for sound.


broadcast sound

Dialogs βœ…

Send a sound to the online players, you must use XSound for sound.


data

Dialogs βœ…

Update 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

Dialogs ❌

Refresh current button. Works only in click requirement.


refresh inventory

Dialogs ❌

Refreshes the currently open inventory.


back

Dialogs ❌

Return to previous inventory.


shopkeeper

Dialogs βœ…

Open a Shopkeeper trading inventory


book

Dialogs βœ…

Opens a book for the player. You can specify the title, author, and pages of the book.


actionbar

Dialogs βœ…

Allows 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

Dialogs βœ…

Allows 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

Dialogs βœ…

Allows 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

Dialogs βœ…

Send a title. You can use placeholders and color/format codes here. MiniMessage format is enabled by default if your server supports it.


teleport

Dialogs βœ…

Teleport a player


discord

Dialogs βœ…

Allow to send a discord webhook. You can add a embeds, username, tts etc.


discord component

Dialogs βœ…

Send 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

Dialogs βœ…

Allows you to add or remove a permission from a player, works with luckperms.


toast

Dialogs βœ…

Allows 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

Allows you to start several quests.


zJobs

Lists of actions working with the zJobs plugin.

zjobs add points

Allows you to add job points


zjobs claim reward

Allows you to claim a reward


zjobs remove points

Allows you to remove job points


Last updated