Commands and Permissions

List of the commands and their permissions

Commands

CommandPermissionDescription

/zm (aliases: /zmenu)

zmenu.use

Display the list of commands.

/zm open <menu> [<player>] [<display message>] [<args>]

zmenu.open

Opens the specified inventory.

/zm reload

zmenu.reload

Reload configurations.

/zm reload config

zmenu.reload

Reload config.json and messages.yml files

/zm reload inventory [<inventory name>]

zmenu.reload

Reload inventories files

/zm reload command [<command name>]

zmenu.reload

Reload commands files

/zm version

Show plugin version.

/zm convert

zmenu.convert

Convert DeluxeMenu to zMenu.

/zm list

zmenu.list

Inventory list

/zm create <file name> <inventory size> <inventory name>

zmenu.create

Create a new inventory file, you just have to add items afterwards.

/zm save <item name>

zmenu.save

Save the item you have in hand in the plugin configuration format.

/zm giveopenitem <inventory> [<player>]

zmenu.open.item

Allows to retrieve the item that must be used to open the inventory during a click

/<command>

Custom permission

Open specific file.

List of commands for the player data system here.

Open command with argument

You can use the/zm open command with arguments (like here).

For example, with default inventory example_punish. You will be able to define the two arguments to be used. You can do this in two ways.

  • The first is to specify the names of the arguments, as follows: <argument name>:<argument value> Example: /zm open zmenu:example_punish Maxlego08 false target:Maxlego09 reason:test Result: %zmenu_argument_target% and %zmenu_argument_reason% You can also add more argument like that: /zm open zmenu:example_punish Maxlego08 false target:Maxlego09 reason:"this is a really long reason"

  • The second is to directly use the value, so the argument name will be 0 for the first value, 1 for the second etc... Example: /zm open zmenu:example_punish Maxlego08 false Maxlego09 test Result: %zmenu_argument_0% and %zmenu_argument_1%

Convert

To convert your DeluxeMenu configurations to zMenu you must use the zMenuConvert extension.

Download link: https://groupez.dev/resources/zmenuconvert.266

After installing the plugin you need to run the command /zm convert. Your menus and commands will be created in the inventories/convert and commands/convert folders.

Be careful, the conversion may contain errors, you must check your files to make sure there are no problems.

Github: https://github.com/Maxlego08/zMenuConvert

Last updated