Black Friday Bundles up to 67% off Everything else is 30% off. Ends December 3. See the bundles →

Plugins

Browse

Customize Menus

Customize Menus

View as Markdown ·

On this page

#Player Menus

Each menu players open is its own file in menus inside the plugin folder, created on first use. /pcur reload reads them again.

File Menu
wallet.yml The wallet, with every currency the player can use.
history.yml The balance history, a list of the player's transactions.
pay.yml The pay menu, a player picker.
bank.yml The bank of a currency.
bank-history.yml The bank history, in the same shape as the balance history.
top.yml The top players of a currency.

Bedrock players get forms instead of the wallet, the history list, the pay menu and the top list; their text is in the translation file under bedrock.

The in-game editor and the staff transaction log are admin screens, and their text is in the translation file.

#Editing Menus in Game

The Wallet, History, Pay, Bank, Bank History and Top menus can be edited in game instead of by hand. Open Editor > Menus and click one, or run /pcur editlayout <menu> with phoenixcurrencies.command.editor. The layout editor lets you move, swap and restyle the items. Saving writes menus/<name>.yml and the next time the menu opens it shows the change, with no reload.

Every menu starts with the same settings block: the title, the number of rows, how often the menu refreshes and the actions run when it opens.

YAML
settings:
  type: WALLET
  title: Wallet
  rows: 6
  refresh:
    enabled: true
    rate: 40
  on-open-actions: []

Leave type as it is, it tells the plugin which menu the file belongs to. The rate is in ticks. Titles, names and lore accept color codes.

#Slots and Items

Slots are counted from 0, starting at the top left of the menu, so the first row is 0 to 8. A slot takes a single slot ('4'), a range ('0-8'), or a comma separated mix of both.

The items section holds the decoration, with any names you like. Each item takes slot, material, amount, custom-model-data, item-model, glow, hide-attributes, display-name, lore, tooltip-style and actions. The plugin's own buttons, such as close, sit at the top level of the file and take the same keys.

The actions of an item and the on-open-actions of a menu are written as [TYPE] arguments, with the arguments separated by ;.

Action Syntax
[ACTION_BAR] [ACTION_BAR] <message>
[CLOSE_INVENTORY] [CLOSE_INVENTORY]
[SOUND] [SOUND] <sound>; <volume>; <pitch>
[TITLE] [TITLE] <title>; <subtitle>; <fadein>; <stay>; <fadeout>

#Wallet

The currencies fill the pagination slots, with previous-item and next-item to turn pages and empty shown when the player has no currency here. Each currency is drawn with its own icon, the entry name and lore, then the click lines for what it allows: top-lore when it has a leaderboard, pay-lore when it can be paid, exchange-lore when it has rates, and history-lore. no-rank is shown as the rank of a player without one.

Placeholders Description
%currency%, %currency_plain% The display name, with and without colors.
%id% The currency's id.
%symbol% The symbol.
%balance%, %balance_compact% The player's balance, in full and short.
%rank% The player's place on the leaderboard.
%player% The player's name, also in the title.

#Top Menu

The file is top.yml. The players fill the pagination slots, drawn with the entry name and lore, or with entry-self for the player who opened it. player-heads decides whether the entries show the player's head. empty is shown when nobody is on the list, summary shows the viewer's own rank and balance and close closes the menu.

Placeholders Where Description
%rank%, %player%, %balance% Entries The place, the player and their balance.
%currency%, %currency_plain% Everywhere The display name, with and without colors.
%rank%, %balance%, %entries% Summary The viewer's rank and balance, and the number of players shown.

#Pay Menu

The file is pay.yml. The players fill the pagination slots with their heads, drawn with the entry name and lore, and empty is shown when nobody is online. info shows the player's balance and close closes the menu. Clicking a player asks for the amount with the amount title, field and chat hint.

Placeholders Where Description
%target%, %server% Entries, amount prompt The player to pay and the server they are on.
%currency%, %currency_plain% Everywhere The display name, with and without colors.
%balance%, %minimum% Everywhere The player's balance and the smallest payment.
%player% Everywhere The player's name, also in the title.

#Balance History

The file is history.yml. The transactions fill the pagination slots, with previous-item and next-item to turn pages. Money that came in is drawn with entry-in and money that went out with entry-out, and empty is shown when there are no entries. date-format writes the time, as a Java date pattern. summary sums up the list and close closes the menu.

Placeholders Where Description
%reason%, %amount%, %balance%, %actor%, %detail%, %time% Entries The reason, the amount, the balance after the entry, who did it (- if nobody), the detail the plugin that moved the money gave, and when. A Detail line with no detail is left out.
%currency% Entries, summary, title The display name of the currency.
%currency_plain%, %player% Title The currency without colors and the player.
%player%, %balance%, %entries% Summary The player, the balance now and the number of entries shown.
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping