DUXPLIMA Documentation

Menu Files

The shape of a menu file: title, rows, items, slots and conditions.

Menus live under languages/<language>/menus/, one YAML file per menu, so a menu is translated by translating a file rather than by editing a shared one.

FileMenuOpened by
npc-main-menu.ymlThe NPC's main menu[menu] main
npc-modify-menu.ymlAppearance[menu] appearance
glowing-settings-menu.ymlGlow colours[menu] glow
shop-menu.ymlPurchase[menu] shop, or /helpernpc buy

Shape of a menu file

title: "              <black>Island Info"
rows: 3
filler-material: "GRAY_STAINED_GLASS_PANE"
filler-slots: [0, 1, 2, 3, 5, 6, 7, 8]

items:
  info:
    material: "PLAYER_HEAD"
    model-data: 0
    amount: 1
    display-name: "<#ff0000>Island Info"
    glowing: false
    head-data: "texture-ewogICJ0aW1lc3RhbXAi..."
    lore:
      - '<#00b4d8>Island Profile'
      - ' <#DCF7F7>Level <#81e0f7>%superior_island_level_format%'
    slots: [4]
    actions:
      - "[player] is"
      - "[close]"
KeyMeaning
titleMenu title, MiniMessage
rowsInventory rows
filler-materialMaterial for the empty slots
filler-slotsWhich slots the filler occupies
itemsA map of named items — the name is yours, only actions and slots matter to the plugin

Item keys

KeyMeaning
materialBukkit material name
model-dataCustom model data, for resource packs
amountStack size
display-nameMiniMessage, with PlaceholderAPI placeholders
glowingEnchantment glint
head-datatexture-<base64> for a player head, or a player name
loreLines, MiniMessage, with placeholders
slotsEvery slot this item is placed in
actionsRun in order when clicked, see Actions

An item may sit in several slots; the same item at slots [3, 5] is one definition, not two.

Placeholders come from your other plugins

The shipped main menu is full of %superior_island_*% placeholders because it was written against SuperiorSkyblock2. Replace them with the placeholders of whichever region plugin you run, or the lines will render as raw text.