Shops
Every .yml file of shops/ is a shop: /mobcoins shop <name>. shop.main-shop is opened by /mobcoins shop and by shop.open-command (/mobcoinshop). A shop can have its own commands: open-commands: [vipshop]. Shops can link each other with [open] <shop> and [back].
enabled: true
title: "<gradient:#f7b733:#fce38a><bold>MOBCOINS SHOP</bold></gradient>"
rows: 5
open-commands: []
open-permission: ""
items:
beacon:
slots: "31"
material: "BEACON"
name: "&b&lBeacon"
price: 1000 # mobcoins
give: ["BEACON 1"] # or the exact item saved by the editor
commands: [] # console commands ({player} {uuid})
confirm: true # confirm menu first
limit: 1 # times each player can buy it
limit-reset: weekly # never / daily / weekly / monthly
stock: 0 # pieces for the whole server
permission: "" # needed to buy it
close:
slots: "40"
material: "BARRIER"
name: "&cClose"
actions: ["[close]"]
decorations:
- slots: "0-8,36-44"
material: "YELLOW_STAINED_GLASS_PANE"
name: " "
slots:"4","19-25","0-8,45-53".material:DIAMOND,head:{player},head:Notch,texture:<minecraft-heads value>,ia:<id>(ItemsAdder).name,lore,amount,glow,custom-model-data,admin-only,update: true(redrawn every second).show-if/hide-if:[has_mobcoins] 100,[has_permission] node,[expression] a >= b.priority: more items in one slot, the first one that can be seen is shown.- Products get the lines of
texts:under their lore (price, click to buy, you need X more ...). Placeholders:{price}{limit}{bought}{left}{stock}{stock_left}{missing}. - Limit and stock are counted in the storage: with MySQL they are shared by every server.
shop.confirm-aboveinconfig.yml: products that cost at least this much open the confirm menu.- Menus react only to left / right clicks (with or without shift): Q, number keys and F do nothing unless an item asks for them.
Actions
[open] <menu> [back] [close] [refresh] [player] cmd [console] cmd [chat] text [message] text [broadcast] text [title] title;subtitle [actionbar] text [sound] NAME 1 1 [effect] SPEED;10;1 [bossbar] text;5 [mobcoins_give] 10 [mobcoins_take] 10 [mobcoins_set] 10 [buy(mobcoins)] 100 [buy(money)] 100 (Vault) [buy(tokens)] 100 [tokens_give] 10 (FlareTokens) [server] name [delay] 20. [LEFT] / [RIGHT] / [SHIFT_LEFT] / [SHIFT_RIGHT] before an action: only for that click. if / do / else / end blocks work too.
The FlareMobcoins 3.x shops (menu_title, size, display_name, slot, click_commands, view_requirements, [buy(mobcoins)] ...) work as they are.
Ultimo aggiornamento: