πŸ‡±πŸ‡·
zMenu
Marketplace
English
English
  • 🍾Getting started
  • πŸ”ŒInstalling zMenu
  • βž•Supported Plugins
  • πŸ‘zMenu+
  • ⛰️Configurations
    • ℹ️Informations
    • πŸ“œCommands and Permissions
    • πŸͺ§PlaceHolder
    • How to create an inventory step by step
    • πŸ‘¨β€πŸ’»Inventories
    • ⏹️Buttons
    • 🏁Requirements
    • ☒️Actions
    • πŸͺItems
    • Global Placeholders
    • πŸ”‹Patterns
    • Commands
    • πŸ›Player data
    • 🦬Config.json
  • API
    • ℹ️Informations
    • Create Button
    • Create Material Loader
    • Create ButtonOption
    • Load Inventory
    • Fast Events
  • πŸ—ƒοΈPlugin's files
  • πŸ•Example GUI menus
Powered by GitBook
On this page
  • player command
  • random player command
  • console command
  • random console command
  • message
  • broadcast
  • chat
  • close
  • inventory
  • connect
  • sound
  • broadcast sound
  • data
  • refresh
  • back
  • back
  • shopkeeper
  • book
  • actionbar
  • withdraw
  • deposit
  • title
  • teleport
  • discord
  • discord component
Edit on GitHub
  1. Configurations

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%"

player command

- type: player command
  commands:
    - "firstcommand"
    - "seconds commands %player%"
  command-in-chat: false # false by default

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


random player command

- type: random_player_command
  amount: 1 # Default value
  commands:
    - "firstcommand"
    - "seconds commands %player%"
  command-in-chat: false # false by default

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


console command

- type: console_command
  commands:
    - "firstcommand"
    - "seconds commands %player%"

Executes commands as the console.


random console command

- type: random_console_command
  amount: 1 # Default value
  commands:
    - "firstcommand"
    - "seconds commands %player%"

Execute random commands from the list.


message

- type: message
  messages:
    - "my message"
    - "my second messages"
  mini-message: true # true by default

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

- type: broadcast
  messages:
    - "my name %receiver%"
    - "my second message send by %sender%"
  mini-message: true # true by default
  requirements: 
    - type: permission
      permission: "admin.use"

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.


chat

- type: chat
  messages:
    - "my message"

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

- type: close

Closes the player's inventory.


inventory

- type: inventory
  inventory: <inventory name>
  plugin: <plugin name>
  page: <page>
  arguments: <argument list>

Opens an inventory.

connect

- type: connect
  server: <server name>

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


sound

- type: sound
  sound: <xsound>
  pitch: <sound pitch> # 1.0f by default
  volume: <sound volume> # 1.0f by default

broadcast sound

- type: broadcast_sound
  sound: <xsound>
  pitch: <sound pitch> # 1.0f by default
  volume: <sound volume> # 1.0f by default

data

- type: data
  action: <SET/REMOVE/ADD/SUBTRACT>
  key: <data key>
  value: <data value>
  seconds: <expire seconds> # 0 by default
  math: <true/false>

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

- type: refresh  

Refresh 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.


back

- type: back

Refresh current button. Works only in click requirement.


back

- type: back

Return to previous inventory.


shopkeeper

- type: shopkeeper
  name: <shopkeeper name>

book

- type: book
  author: "Maxlego08" # Book author
  title: "&cTest" # Book title
  lines: # Book pages
    1: # First page
      - '     #34ebe8zMenu'
      - ''
      - ''
      - '<hover:show_text:"#34eba8Open an url !"><click:open_url:"https://minecraft-inventory-builder.com/">#f0af24Open URL<reset>'

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


actionbar

- type: actionbar
  message: "my message"
  minimessage: true # true by default

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

- type: withdraw
  amount: <amount>
  currency: <currency name>
  economy: <economy name> # Only the zEssentials, CoinsEngine and EcoBits plugins need this  

deposit

- type: deposit
  amount: <amount>
  currency: <currency name>
  economy: <economy name> # Only the zEssentials, CoinsEngine and EcoBits plugins need this

title

- type: title
  title: <title>
  subtitle: <sub title>
  start: <start in milliseconds>
  duration: <duration in milliseconds>
  end: <end in milliseconds>

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


teleport

- type: teleport
  world: <world> # default world is "world"
  x: <x>
  y: <y>
  z: <z>
  yaw: <yaw>
  pitch: <pitch>

Teleport a player


discord

- type: discord
  webhook: "https://discord.com/api/webhooks/<url>"
  message: "Test webhook"

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

- type: discord
  webhook: <url>
  message: <content>
  avatar: <avatar url>
  username: <webhook username>
  embeds:
    - title: <embed title>
      description: <embed description>
      url: <url>
      color: <hex color>
      footer:
        text: <text footer>
        icon-url: <icon url>
      thumbnail:
        url: <url>
      image:
        url: <url>
      author:
        name: <author name>
        url: <author url>
        icon-url: <author icon url>
      fields:
        - name: <field name>
          value: <field value>
          inline: true/false

discord component

- type: discord component
  webhook: "https://discord.com/api/webhooks/<url>"
  username: "GroupeZ" #Optional
  avatar_url: "" #Optional
  component: [
    {
      "type": 10,
      "content": "Never trust a alien with a giant spaghetti."
    },
    {
      "type": 14,
      "divider": true,
      "spacing": 2
    },
    {
      "type": 10,
      "content": "If life gives you invisible unicorn, make invisible unicorn soup."
    },
    {
      "type": 17,
      "accent_color": 14951974,
      "spoiler": true,
      "components": [
        {
          "type": 10,
          "content": "Never trust a grandma with a giant spaghetti."
        }
      ]
    }
  ]
PreviousRequirementsNextItems

Last updated 3 days ago

This feature is only available with !

This feature is only available with !

You can set a list of to send a message to certain players.

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

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

Update .

Open a trading inventory

Allows you to withdraw money from the player’s account. Works with the , , , , , , , , , and . CurrenciesAPI :

Allows you to deposit money from the player’s account. Works with the , , , , , , , , , and . CurrenciesAPI :

Send a . To generate your component you must go to the site , then you must copy the result json. You can simplify your json into one line .

⛰️
☒️
zMenu+
zMenu+
requirements
XSound
XSound
player data
Shopkeeper
BeastTokens
Vault
PlayerPoints
ElementalTokens
ElementalGems
Level
Experience
zEssentials
EcoBits
CoinsEngine
VotingPlugin
https://github.com/Traqueur-dev/CurrenciesAPI
BeastTokens
Vault
PlayerPoints
ElementalTokens
ElementalGems
Level
Experience
zEssentials
EcoBits
CoinsEngine
VotingPlugin
https://github.com/Traqueur-dev/CurrenciesAPI
webhook discord components
https://discord.builders/
here