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.
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:
You can define whether the argument is optional and whether the argument has a specific inventory.
Example
You have:
argument name
true or false, set argument required or not
inventory name. You can set the inventory name and plugin name
Last updated