⚔️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.

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:

ban: # Ban punishment item configuration.
      material: 'PLAYER_HEAD'
      player_head: 'http://textures.minecraft.net/texture/55effce109de50f5853b0c32dcc1a28cf62a504b610e71e22f1fde6fc1a4b93d'
      slot: '13' # Slot for the ban item.
      name: '&c&lBan' # Display name for the ban item.
      lore: # Lore for the ban item.
        - '&7Left-Click to ban'
        - '&7player &b{target}&7.'
      left_click_actions: # Actions performed on left click.
        - 'OPEN_MENU:ban_details' # Open menu action. Syntax: 'OPEN_MENU:<menu_key>'
      right_click_actions: # Actions performed on right click.
        - 'OPEN_MENU:ban_details' # Open menu action. Syntax: 'OPEN_MENU:<menu_key>'

Last updated