I decided that the problem with multi-page menus, where data is saved and transferred quickly, could be solved by changing the design of the same menu
But I ran into a problem - the plugin can only update text in the lore and placeholders
Why wasn't updating materials, flags, and other things provided for?
That would be a direct solution to any problems with fake "multi-page menus," since the menu would update itself - for example, every 10 ticks - and along with it, materials, lore, and meta would refresh
menu_title: '&8test'
update_interval: 1
size: 27
#open_commands:
# - '[console] dm meta %player_name% set background STRING gray'
items:
bg_green:
material: LIME_STAINED_GLASS_PANE
update: true
slots:
- 0-26
priority: 0
view_requirement:
requirements:
check:
type: 'has meta'
key: 'background'
meta_type: 'STRING'
value: 'green'
bg_gray:
material: GRAY_STAINED_GLASS_PANE
update: true
slots:
- 0-26
priority: 1
view_requirement:
requirements:
check:
type: 'has meta'
key: 'background'
meta_type: 'STRING'
value: 'gray'
toggle:
material: LEVER
update: true
slot: 13
priority: -1
display_name: '&aGreen || &7Gray'
lore:
- '&7Current: %deluxemenus_meta_background_STRING%'
left_click_commands:
- '[console] dm meta %player_name% set background STRING green'
- '[close]'
- '[openguimenu] example'
#- '[refresh]<delay=2>'
right_click_commands:
- '[console] dm meta %player_name% set background STRING gray'
- '[close]'
- '[openguimenu] example'
#- '[refresh]<delay=2>'
I decided that the problem with multi-page menus, where data is saved and transferred quickly, could be solved by changing the design of the same menu
But I ran into a problem - the plugin can only update text in the lore and placeholders
Why wasn't updating materials, flags, and other things provided for?
That would be a direct solution to any problems with fake "multi-page menus," since the menu would update itself - for example, every 10 ticks - and along with it, materials, lore, and meta would refresh