Skip to content

The buttons of the /ah chest menus: their items, names, lore and slots, and the background of each screen. Written to plugins/ProtonAuctions/menus.yml. Apply changes with /ahadmin reload.

The file has one block per menu:

BlockThe menuTitle from this fileHeight from this fileButtons in this file
mainMenuThe main browse grid.NoYesprevious-page, next-page, sorting, category-selector, search, search-active, clear-search, loading
confirmMenuThe purchase confirmation.NoYesitem-preview, cancel, confirm
myAuctionsMenuYour own listings (/ah my).NoYestab-active, tab-expired, tab-sold, previous-page, next-page, empty-placeholder
claimMenuThe claim bin (/ah claim).NoNoNone, only the background.
categoryMenuThe category picker.NoNoall-categories, back
searchMenuThe search screen.NoYescurrent-query, enter-query, clear-search, back
bidMenuNot used. The bidding screen is fixed.NoNoNone
cancelMenuThe cancel confirmation.NoYesitem-preview, abort, confirm
adminMenuThe admin actions screen.YesYesitem-preview, force-end, delete, view-info, copy-id, back
shulkerPreviewMenuThe shulker box preview.YesYesback, bid-action, buy-action
historyMenuThe sales history screen.NoNoprevious-page, next-page, back
currencySelectionMenuThe currency picker, shown when you sell with more than one currency, or with barter on.NoNocancel, item-preview

Where a title does not come from this file, it comes from the language file. See Localization.

Each menu block has:

KeyDefaultWhat it does
titleThe menu title, MiniMessage. Only adminMenu and shulkerPreviewMenu use it.
rows6Menu height, 1 to 6, for the menus marked Yes above.
fillItemThe background item placed in empty slots. Uses the item keys below.
itemsA map of named buttons in the menu. Each uses the item keys below.

On mainMenu and myAuctionsMenu, a button only shows on the bottom row, except loading and empty-placeholder, which sit in the grid. Changing rows there moves the bottom row, so the buttons disappear unless they move too. Keep the main grid at 6 rows.

Item keys

Both fillItem and every entry under items use these keys:

KeyDefaultWhat it does
materialSTONEThe item material.
nameThe item name, MiniMessage.
loreLore lines, MiniMessage.
slot0The slot the item sits in.
glowfalseGive the item an enchant glow.
customModelData0A resource-pack model id. 0 means none.

Some names and lore include ${...} tokens the plugin fills in per menu, such as a listing's price, seller, or time remaining. Keep those tokens where you want the value to show.

mainMenu:  items:    search:      material: COMPASS      name: '<yellow>Search</yellow>'      slot: 51      glow: true