TMDevelopmentTinulica & Maiky

Chest builder

Chest builder

1.0.22+ · admins (flarereferrals.admin)

Build the menu in a real container, look at it (at most 5 blocks away) and type one command.

ContainerRows
chest, trapped chest, barrel, shulker box3
double chest6
hopper, dispenser, ender chest...can't be used

Commands

Command
/referrals layout add <name>new menu menus/<name>.yml, players open it with /<name>
/referrals layout import <menu>the chest replaces the items of a menu (also main, top, collect...)
/referrals layout chest <menu>puts a menu in the empty chest you look at, with its actions in the lore
/referrals layout remove <name>deletes a menu made with add (asks to confirm)
/referrals layout listevery menu, click one to edit it
  • Names: a-z 0-9 -, at most 32 characters, not a name of the plugin or a command of another plugin.
  • Before an import or a remove the old file is copied to backups/.
  • After add and import you get a summary (rows, items, actions, buttons) and the menu opens in the editor.
  • The menus made with it are also in /referrals settings → Menu layouts: edit, rows, title, on / off, delete.

What is kept

Slot, material, amount, name, lore, enchantments, colors, custom model data, player heads and textured heads, leather color, potions, NBT. Plain items are written in the readable form (material, name, lore), the others complete (item:). A head named {player} shows the head of the player who opens the menu.

Actions and options in the lore

Lore lines that start with [ are not shown: they are actions and options.

Lore line
[close] / [back] / [refresh]close, open the previous menu, draw it again
[open] <menu>open a menu of the plugin or one of yours
[player] <cmd> / [console] <cmd>command as the player / the console ({player}, PlaceholderAPI)
[chat] <text>the player writes it in chat
[message] <text> / [broadcast] <text> / [actionbar] <text>messages
[title] title;subtitle;in;stay;outtitle
[sound] <sound> [volume] [pitch]entity.player.levelup or ENTITY_PLAYER_LEVELUP
[delay] <ticks>wait before the next actions (20 ticks = 1 second)
[server] <name>send the player to another server of the network
[left] [right] [shift-left] [shift-right]in front of an action: only that click
[permission] <node>only players with it see the item
[admin-only]only admins see it
[update]drawn again every second (live placeholders)
[button] <id>a button of the plugin goes in this slot

A lore line that must really start with [ is written \[. An unknown action is reported after the import.

Buttons of a menu made with add: head, milestones (one slot per milestone), referral-rewards, collect, top, settings, close, back. A [button] item with its own name keeps its look (material, name, lore with {placeholders}); without a name the button looks like in the main menu. For import the buttons are the ones of that menu (the editor shows them).

Example

A diamond named &bVIP ranks with this lore:

&7Ranks with extra rewards
[left] [player] warp vip
[right] [open] top
[permission] group.member

Left click = /warp vip, right click = top menu, only for players with group.member.

Change a menu by hand

  1. /referrals layout chest main in an empty double chest.
  2. Move, add or remove items (taking out a button removes it from the menu).
  3. /referrals layout import main. Unchanged items give exactly the same file.

Actualizat ultima data pe

Autentificare

Esti nou? Scrie doar emailul: contul se creeaza cand apesi pe link. Nu ai nevoie de parola.

sau

Iti trimitem un link care te autentifica dintr-un click. Merge si pentru conturi noi, si pentru cele existente.

Autentifica-te cu parola
Ai uitat parola?

Continuand, accepti Termeni si conditii si Politica de confidentialitate.

Staff: deschide „Autentifica-te cu parola” si scrie numele de utilizator in loc de email. Dupa parola iti cerem codul 2FA.