Bindings
Bind the menu to commands and/or items

Example

1
#Ways to open the menu.
2
Bindings:
3
# Defines the commands used to open this menu.
4
Commands:
5
- '(?i)example(-)?(gui)?(s)?'
6
#Defines the items which will open this menu when clicked.
7
Items:
8
#Any compass
9
- 'material:compass'
10
#Clocks with the lore `OPEN_MENU`
11
- 'material:clock,lore:OPEN_MENU'
12
#Player Heads with the specified texture
13
- 'texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDRmNDUyZDk5OGVhYmFjNDY0MmM2YjBmZTVhOGY0ZTJlNjczZWRjYWUyYTZkZmQ5ZTZhMmU4NmU3ODZlZGFjMCJ9fX0='
Copied!

Note

  • Commands suppoprt RegEx ! For example, with (?i)example(-)?(gui)?(s)?:
    • (?i) will make the command ignore the case: /example and /eXamPle would work.
    • (gui)? and (s)? make gui and s optionnal in the command: /example , /exampleguiand /exampleguis would work.
  • Binded commands support spaces and arguments, the plugin will automatically match and read the real arguments without
  • To understand the syntax of binded items, please see the following wiki page:
Last modified 1yr ago
Copy link
Contents
Example
Note