⚔️Item Syntaxis
Menu items are defined in the YAML configuration files (punish_menu.yml, punish_details_menu.yml, time_selector_menu.yml, history_menu.yml) under the menu.items (or similar) section.
All YAML text files must be valid for the plugin to work, so check for errors in your changes at https://jsonformatter.org/yaml-validator
Here’s the general syntax for defining a menu item:
menu:
items:
<item_key>: # Unique identifier for the item (e.g., ban, mute, info)
material: <material_name>[:<custom_model_data>] # Minecraft Material enum name (e.g., DIAMOND_SWORD, PLAYER_HEAD). Optional metadata.
name: <display_name> # Display name of the item (supports color codes and placeholders)
lore: # Lore of the item (list of strings, supports color codes and placeholders)
- "<lore_line_1>"
- "<lore_line_2>"
- "..."
player_head: <player_name_or_texture_url> # Optional: Player username or direct texture URL for PLAYER_HEAD material
quantity: <quantity> # Optional: Item quantity (default: 1)
slot: <slot_number(s)> # Inventory slot number or comma-separated slots or ranges (e.g., '13', '10,11,12', '20-25')
left_click_actions: # Actions to perform on left click (list)
- "<click_action_1>"
- "<click_action_2>"
- "..."
right_click_actions: # Actions to perform on right click (list)
- "<click_action_1>"
- "<click_action_2>"
- "..."
Example Item Configuration:
Last updated