Menu Customization

2commands
3files
4min read
Sheet 45 of 53 · Server Admin

Filesgui/bank.yml · gui/main.yml · menus.yml

Filegui/bank.ymlFilegui/main.ymlCommand/is admin reloadCommand/is menuEvery chest GUI IgniteSky opens is backed by an editable file in gui/, one per menu. Titles, sizes, frames, icons and slots are all yours to change, and you can add buttons of your own. Edits are picked up on /is admin reload.

How it works

Each menu is one file in gui/: title, size, framing, the fixed buttons and the templates for anything drawn from live data. Text uses MiniMessage, and <lang:KEY> pulls a line from lang/<code>.yml in the viewer's language, which is how the shipped files stay translatable. When IgniteSky updates, new keys are added to your files and nothing you added is removed; a deleted file is written back from the bundled default on the next start or reload.

gui/bank.yml (excerpt)
title: "<lang:gui.bank.title>"         # MiniMessage; <lang:KEY> reads the language file
size: 36                               # slots, a multiple of 9 (9-54)
border: CYAN_STAINED_GLASS_PANE        # frame (outer ring) material
filler: BLACK_STAINED_GLASS_PANE       # backdrop for empty slots
 
items:
  deposit-100:
    slot: 10                           # 0-based slot
    item: { material: IRON_NUGGET, name: "<lang:gui.bank.deposit-100-name>", lore: ["<lang:gui.bank.deposit-lore>"] }
    actions:
      do: { type: CALLBACK, value: "ignitesky:bank-deposit", args: { amount: 100 } }
  back:
    slot: 31
    item: { material: ARROW, name: "<lang:gui.common.back>" }
    actions:
      back: { type: CALLBACK, value: "ignitesky:back", args: { to: "main" } }

Keys

KeyMeaning
titleMiniMessage menu title.
sizeMenu size in slots (9, 18, ... 54).
borderFrame (outer ring) material. Omit for no frame.
fillerBackdrop material for otherwise-empty slots.
items.<key>.slot0-based slot for a fixed button.
items.<key>.itemThe icon: material, name, lore, amount, glow, skull-owner.
items.<key>.actionsWhat a click does (a named map, see Custom menus below).
items.<key>.requirementsGates that hide or deny the button (permission, level, ...).
content.templatesHow the menu draws the entries it builds from live data (members, warps, leaderboard rows). Tokens like <name> are filled per entry.
content.slotsThe slots those entries flow into; extra entries spill onto further pages.
layout / compactHub menus only: which slot each tile sits in, and whether each row is centred so hidden tiles leave no gaps. Set a tile to -1 to hide it.

CALLBACK actions with an ignitesky: value call into the plugin (deposit, open a hub, go back). Leave them as they are unless you want to remove that button; the other action types are yours to use.

Adding buttons to built-in menus

Any built-in menu can take extra buttons: add an entry under items: with a slot, an item and actions. It uses the same vocabulary as custom menus, so you can drop a "Shop" button into the bank menu, or a "Rules" button into the main menu, without code.

gui/bank.yml
items:
  shop-button:
    slot: 8
    item: { material: EMERALD, name: "<green>Server Shop" }
    requirements:
      perm: { type: PERMISSION, permission: "server.shop" }
    actions:
      open: { type: PLAYER_COMMAND, command: "shop" }
      close: { type: CLOSE_MENU }

The /is hub

Filegui/main.ymlThe main menu (gui/main.yml) shows your island's info head, the everyday tiles (home, warps, members, bank, upgrades, missions, top, settings, lock, preview) and four hub tiles that open their own menus:

TileFile
Island Toolshub-island
Progressionhub-progress
Communityhub-community
Personalhub-personal

Tiles for a feature that is switched off, or that the player lacks the permission for, are hidden. Visit, trust, ban, showcase and "rate a player" open a head picker of online players (hub-pick), and Role Permissions opens a role picker (hub-roles). Island Info has its own screen (island-info), and the chest opens a page picker (chest-pages) when more than one page is unlocked.

Back returns to the menu you came from, and Esc on a dialog cancels it.

Which menus

Every menu has a file: main, hub-island, hub-progress, hub-community, hub-personal, hub-pick, hub-roles, island-info, chest-pages, mode-select, map-select, confirm, members, member-action, invite, bank, banklogs, warps, public-warps, top, top-visited, upgrades, generator, missions, quest, counts, values, bans, coop, settings, rating, visitors, snapshot, skill-tree, guestbook, cosmetics, prestige, prestige-top, season, daily, daily-top, boosters, language, templates, toggles, market, minion, minions, islandlog, chunk-map. The bundled defaults are written to gui/ on first run, so you always have a working file to edit (50 in all).

Custom menus (build your own)

Filemenus.ymlCommand/is menuYou can also define new menus in menus.yml (slots, items, click actions and requirements) and open them with /is menu <id>. Handy for a rules book or a small server hub.

menus.yml
menus:
  hub:
    title: "<gradient:#3bb2ff:#9b6bff>Server Hub</gradient>"
    size: 27
    items:
      island:
        slot: 11
        item: { material: GRASS_BLOCK, name: "<green>My Island" }
        actions:
          go: { type: PLAYER_COMMAND, command: "is home" }
          close: { type: CLOSE_MENU }
      shop:
        slot: 13
        item: { material: EMERALD, name: "<yellow>Shop" }
        requirements:
          perm: { type: PERMISSION, permission: "server.shop" }
        actions:
          open: { type: PLAYER_COMMAND, command: "shop" }

Each item can carry requirements (gates that hide/deny the action) and actions (what a click does). Both are named maps, not lists.

ActionsRequirements
CLOSE_MENU · COMMAND · CONSOLE_COMMAND · PLAYER_COMMAND · MESSAGE · ACTION_BAR · PLAY_SOUND · OPEN_MENU · GIVE_ITEM · TAKE_ITEM · TELEPORT · BROADCAST · TITLE · BACK · REFRESHPERMISSION · NO_PERMISSION · LEVEL · HAS_ITEM · RATE_LIMIT · PLACEHOLDER_EQUALS

OPEN_MENU chains to another menu id, and RATE_LIMIT lets a button self-throttle (e.g. a daily reward). The command, message or permission goes in command, message or permission (the shared value key works too). This complements the built-in menus rather than replacing them.

Loading the index

Enter openUp Down moveEsc close