Configurable menus
Every menu has a file in gui/: title, size, position, item, name and description of every button can be changed without touching the code.
Structure of a file
title: "Garage: {name}"
rows: 6
content-slots: 0-44
filler:
material: GRAY_STAINED_GLASS_PANE
name: " "
slots: 45-53
items:
vehicle:
material: AUTO
name: "<white>{name}"
lore:
- "<gray>Model: <white>{model}"
close:
slot: 45
material: BARRIER
name: "<red>Close"| Key | Description |
|---|---|
title | Title (MiniMessage, with placeholders). |
rows | Menu rows, from 1 to 6. |
content-slots | Slots filled with the items of paged menus (for example 0-44). |
filler | Filler item. |
items.<id> | A button: slot or slots, material (AUTO lets the plugin choose), model-data, amount, name, lore, glow, hide-flags, enabled and group (buttons in the same group can share a slot). |
The menus
| File | Buttons used by the code |
|---|---|
garage | vehicle, settings, shop, switch, previous, page, next, close |
vehicle | info, enter, spawn, despawn, lock, unlock, doors-open, doors-close, repair, upgrades, trunk, rename, move, delete, back, close |
upgrades | speed, tank, acceleration, turning (and the -max variants), back |
shop | model, previous, page, next, back |
shop-color | color, previous, page, next, back |
sell-models | model, previous, page, next, close |
sell-commercial | personal, commercial, back |
confirm-sale | summary, confirm, cancel |
transfer-vehicles | vehicle, previous, page, next, close |
confirm-transfer | summary, confirm, cancel |
pump | amount-1, amount-2, amount-3, full, fill-can |
fuel-shop | fuel, previous, page, next |
fuel-amount | amount, previous, page, next, back |
garage-settings | members, roles, rename, owner, delete, back |
members | member, owner, add, previous, page, next, back |
roles | role, role-default, create, previous, page, next, back |
role-pick | role, role-current, previous, page, next, back |
role-permissions | permission-on, permission-off, permission-on-locked, permission-off-locked, back |
seats | seat-driver-free, seat-driver-taken, seat-free, seat-taken, close |
trunk | title only |
garage-switch | garage, garage-personal, previous, page, next, back, close |
garage-move | same as garage-switch |
garage-shop | same as garage-switch |
confirm-purchase | summary, confirm, cancel |
confirm-garage-delete | summary, confirm, cancel |
confirm-vehicle-delete | summary, confirm, cancel |
Titles, names and descriptions also accept PlaceholderAPI placeholders (see WorldGuard and other plugins). The files are created on the first start with every button. If a file has an error, the plugin writes it to the log and uses that key's default value.