How to create menu.
The plugin has components such as text and buttons.
To create a menu, you need to write its name.
In my example I wrote "catalog".
After that, write what permissions are needed to open the catalog (if not required, leave the field blank).
After that, the components are created. Each new component requires number one more (If the number is greater than one, then reading will stop).
Text
When creating text, you just need to write a line.
Button
If you are creating a button then you have to fill string and fill text types.
Bold:
Click me.
Italic:
Click me
Strikethrough:
Click me
Underlined:
Click me
Obfuscated:
obfuscated text lol
After that, in the command launch field, write the command. (<player> is replaced by the nickname of the player who pressed the button).
In the color field, write COLOR (lol). It is important that you write in capital letters.
Example:
Code (YAML):
catalogs:
catalog:
permission_use
:
""
text0
:
"&3------"
button1:
text
:
"AK-47"
bold
: true
italic
: false
strikethrough
: false
underlined
: true
obfuscated
: false
run_command
:
"/say <player> AK-47"
color
:
"DARK_BLUE"
text2
:
"&3------"
button3:
text
:
"GLOCK-18"
bold
: true
italic
: false
strikethrough
: false
underlined
: true
obfuscated
: false
run_command
:
"/say <player> GLOCK-18"
color
:
"DARK_BLUE"
text4
:
"&3------"
button5:
text
:
"FLASHBANG"
bold
: true
italic
: false
strikethrough
: false
underlined
: true
obfuscated
: false
run_command
:
"/say <player> FLASHBANG"
color
:
"DARK_BLUE"
text6
:
"&3------"