#menu not updating

1 messages · Page 1 of 1 (latest)

safe ether
#

hello, i have the following menu, when i click to the red glass pane, console gives me a permission, and glass pane must be update to green, but its happening only when i reopen the menu, how to update it without a reopen?

    'level1':
        material: GREEN_STAINED_GLASS_PANE
        data: 1
        slot: 21
        priority: 1
        display_name: '&f&lУровень 1'
        view_requirement:
            requirements:
                permission:
                    type: has permission
                    permission: bending.ability.eartharmor
        lore:
            - '&a&l[ОТКРЫТО]'
            - ''
            - '&e&lОткрывает способности:'
            - '&e&lEarthArmor'
            - '&a&lЦена 5000$ и 10 уровень'

    'level1_closed':
        update: true
        material: RED_STAINED_GLASS_PANE
        data: 1
        slot: 21
        priority: 2
        left_click_commands:
           - "[givepermission] bending.ability.eartharmor"
           - "[takeexp] 5L"
           - "[sound] UI_TOAST_CHALLENGE_COMPLETE 1 1"
           - "[message] &d&lВы ощущаете в &9&lcебе новые &4&lсилы&d!"
        left_click_requirement:
            requirements:
                requirement_name:
                    type: has exp
                    level: 5
        display_name: '&f&lУровень 1'
        lore:
            - '&4&l[ЗАКРЫТО]'
            - ''
            - '&e&lОткрывает способности:'
            - '&e&lEarthArmor'
            - '&a&lЦена 5000$ и 10 уровень'

sly umbra
#

Ah, you got it working I see

#

add [refresh] to the click commands

safe ether
hearty elm
# safe ether thx you!

[refresh]<delay=10> * is a better option cause the refresh ll always be last with a delay of 0.5 sec

#

there r times for unknown reason that the refresh works before the rest

#

i ve only seen it happening with luckperms