Emberstore logoEmberstore

Store menus and categories

How the store menu and category menus are built from your category files, and what players can do in them.

Players browse your store in plain chest menus. Every file in plugins/Emberstore/categories/ is one category, so you organise the store by adding, renaming or deleting files. Nothing about the menus is hard-coded.

The main /store menu with Ranks in slot 10, Coins in 12, Points in 14 and Cosmetics in 16 and a barrier close button in slot 40, next to the Rank Store menu with VIP in slot 11, MVP in slot 13 and a barrier back button in slot 40.

The main menu

/store opens the main menu. It is always five rows (45 slots).

The default /store menu in game with the Ranks, Coins, Points and Cosmetics categories and a Close button, the Ranks tooltip showing Click to browse.
  • Each category file puts one icon in the menu, at the slot set in its category section, with its display-name and icon material.
  • The lore under every category icon comes from menu.category-lore in the language file.
  • Slot 40 is a barrier that closes the menu.
  • The menu title is menu.main-title in the language file.

Category menus

Clicking a category opens its own menu, also five rows.

The Rank Store menu in game. Hovering VIP Rank shows its description, price, stock left and Click to purchase.
  • Each item sits at its own slot (0 to 44, but never 40).
  • The menu title is the category's menu-title.
  • Slot 40 is a barrier that goes back to the main menu.
  • Lore can show the price, the price before a sale and the stock left, through <price>, <old-price> and <stock>. See Category files.
  • A sold-out item shows the menu.sold-out text in place of the stock. Clicking it sends the purchase.sold-out message and nothing opens.

Clicking any other item closes the menu and opens checkout. See Checkout dialogs.

Nothing can be taken out

Clicks, shift-clicks, drags and hotbar swaps inside these menus are all cancelled. Items in the player's own inventory are not touched.

Adding a category

Copy a file

Copy one of the template files in categories/, for example coins.yml, and give it a new name such as crates.yml. The file name is used as the category's key in commands such as /store admin give <player> crates <item>, so keep it short.

Give it a free slot

Change category.slot to a slot no other category uses. Two categories with the same slot means the second one is skipped with a console warning.

Fill in the items

Edit the items section. Every key in it is one item. See Category files for every option.

Reload

Run /store admin reload. The console lists every category it loaded, with each item and its price.

On this page