Azioni

Actions that can be performed after a requirement

With a requirement you can define actions on success or failure. Here are the actions that can be performed.

Example

You will have to put an action list like this:

success_actions:
  - 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 tick, for each item if below. Do like this:

success_actions:
  - type: player_command
    delay: 10 # 10 ticks
    commands:
      - "firstcommand"
      - "seconds commands %player%"
Action
Description

Execute commands as the player. You can send the command in the player tchat.

Execute commands as the console.

Send a message to the player. You can use placeholders and color/format codes here. Mini message format is enable by default if your server support it.

Send a message to the online players. You can use placeholders and color/format codes here. Mini message format is enable by default if your server support it.

Sends messages instead of the player.

Closes the player’s inventory.

Opens an inventory of zMenu.

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

Refresh current button. Work only in click requirement

Return to previous inventory.

Open a book

Last updated