Hotbar items and menus
Give players clickable hotbar items and build your own menus in YAML.
Custom Items puts items in the hotbar that run commands. Custom GUI builds menus. Together they cover most lobby navigation without another plugin.
A hotbar item
general:
lock-items: true
give-on-join: true
give-on-respawn: true
custom-items:
server-menu:
enabled: true
slot: 0
material: "BOOK"
amount: 1
name: "&#A0B4C8&lServer Menu"
lore:
- "^A3B8Right-click to open the server menu."
permission: ""
locked: true
cooldown: 1s
commands:
- "glaciergui main"
executor: "PLAYER"
slotis 0 to 8.executorisPLAYERorCONSOLE. Custom items left without one run asCONSOLE, as in 1.4.1. Custom GUI items default toPLAYER.lockedstops the item from being moved or dropped.
Items are tagged internally, so a player who renames another item to “Server Menu” can’t trigger it.
Shared slots
The navigator compass, the PvP sword, the player hider and your custom items all claim hotbar slots through one coordinator. If two features want the same slot, the later claim is layered on top, and the earlier item comes back when that feature stops. Whatever was in the slot before is saved to the recovery folder first.
A menu
Menus live under menus: in customgui.yml and open with /gui <name>:
menus:
main:
title: "&#A0B4C8&lServer Menu"
size: 27
permission: ""
items:
parkour:
slot: 10
material: "FEATHER"
name: "&#A0B4C8&lParkour"
lore:
- "^A3B8Pick a course and beat your time."
permission: ""
close-on-click: true
sound: "UI_BUTTON_CLICK"
commands:
- "glacierparkour list"
executor: "PLAYER"
size must be a multiple of 9. Sounds and materials use Bukkit names and are resolved across versions, so the same file works on 1.13.2 and 26.x.
Putting them together
The bundled defaults already do this: the server-menu item runs glaciergui main, and the main menu links to parkour, the shop and cosmetics. Change the slots and labels and you have a lobby menu.