Panel Commands

How to add a custom command to open a panel

Custom Commands

Allows you to issue the command /example OR /ex OR /e to open the Panel. Custom commands can be changed to anything you want for each Panel. Unlike item commands, these commands are located at the top of the panel, near the title and rows. If you wish to register the command so that they autocomplete, you will need to restart the server for changes to save.

commands: 
- example
- ex
- e

If you wish to add variables into your commands, for example creating a Ban GUI, that can be done using placeholders. Simply place a placeholder in your command, make sure the placeholder starts with%cp-and the rest can be whatever you want. (You can have multiple placeholders, they need to be separate words).

commands: 
- ban %chosenPlayer%

The above example allows you to enter one argument, /ban <player name> Then the placeholder, in this case, would be%cp-chosenPlayer%can be used in the panel freely. Just remember when using the placeholder you will need to add thecp-at the start of the placeholder as seen in this example.

Last updated