Buttons
Buttons format

Example

1
#
2
# Menu Button
3
#
4
Buttons:
5
# The identifier of the icon which can be used in the layout.
6
'|':
7
#The dynamic update interval of the button's properties.
8
#If multiples intervals are set, they will correspond in that
9
#order to the Material, the Name, the Lore and the Slots.
10
#If you set only one number like that `update: #` it will apply for all
11
update: [-1, 10, 15, -1]
12
#The display section of the item
13
display:
14
material: 'Gray Stained Glass Pane'
15
name: ['&fTr&7Menu', '&7Tr&8Menu', '&8Tr&0Menu','&7Tr&8Menu']
16
lore:
17
- - '&7Thanks &f:> &7for using!'
18
- - '&7Thanks &f:) &7for using!'
19
#
20
actions:
21
all: 'sound: BLOCK_NOTE_BLOCK_PLING-1-2'
Copied!
1
#
2
# 优先级图标示例
3
#
4
Icons:
5
'#':
6
update: 20
7
display:
8
material: 'Gray Stained Glass Pane'
9
name: '&7Normal'
10
actions:
11
all: 'sound: BLOCK_NOTE_BLOCK_PLING-1-2'
12
icons:
13
# 条件,拥有 mvp.user
14
- condition: 'hasPerm.mvp.user'
15
prioriry: 2
16
# 深度继承默认图标
17
inherit: true
18
display:
19
name: '&bMVP'
20
actions:
21
all: 'tell: Hello, MVP User!'
22
# 条件,拥有 vip.user
23
- condition: 'hasPerm.vip.user'
24
priority: 1
25
display:
26
name: '&aVIP'
27
actions:
28
all: 'tell: Hello, VIP User!'
Copied!

Structure

  • Update cycle
    • Material
    • Name
    • Lore
    • Slot
  • Refresh cycle (recalculates icons priorities)
  • Display section
  • Actions section
  • Conditionnal icons
    • Condition
    • Priority
    • Inherit
    • Display section
    • Actions section

Note

  • All conditionnal icons are configured under the Icons section
  • You can set a different update cycle for each properties. If only is set, all will be affected.
  • For icons, the higher the number is, the higher the priority is.
  • By default, all conditionnal icons inherit the materials and slots. If `inherit: true` is defined, it will also inherit the name, lore and amount (except if they are specified).
  • The material, the name, lore, slots, etc... all support dynamic effects.
Last modified 1yr ago
Copy link