Commands
Informations
The plugin has an commands
folder that will contain all your commands. You can create an infinite number of commands. A command will contain the name of the command, its aliases, its permission and the name of the inventory to open.
You can put several commands per file and create an unlimited number of files.
Syntax
Command
Main command
Aliases
The aliases of the command.
Action
You can use actions that will always be performed when executing the order.
Permission
The permission the player must have to open the inventory.
Inventory
Name of the inventory that will be opened.
You can also specify the name of the plugin this way:
Arguments
Allows you to add arguments to your commands. You can use the arguments with the following placeholder: %zmenu_argument_<argument name>%
Example
You can define an action and auto-completion list for each action.
You can define whether an argument and required or not with the value isRequired
, Iâll show you that in the example below.
You can not execute the actions of the main command with the value performMainAction
Here you have the command /punish <target> <reason
> . So you can run the command this way: /punish Maxlego08 Cheat (fly)
.
With the placeholders you will be able to retrieve the arguments:
Placeholder | Result |
---|---|
|
|
|
|
You can define whether the argument is optional and whether the argument has a specific inventory.
Example with no required argument:
This example opens a warp inventory, then with an argument to teleport the player to the desired warp using an aliase of essentials.
Last updated