Bug Open

Menu Conditions Aren't Working

#6875 opened by Unknown 7 months ago

Unknownreported this bug

Menu button conditions are not working as expected. Normally it should check per player who opened the menu, but right now if I open the menu before you open it, its matching both of our conditions together and overwriting mine over yours. It might sound confusing but its pretty simple, ill show it in example.

You must be at least level 3 at armor smithing in order to see the conditional/second button, if you dont match the condition it doesnt show you the second one, yes this is working as expected.

      button:
      Mapping: A
      Material: IRON_NUGGET
      Display: '<#a09f9e>NO CONDITIONS'
      Lore:
      - ' '
      - '&7Current armorsmithing level = &a<caster.archetype.level.ARMOR_SMITHING>'
      Conditional:
        - Conditions:
          - archetypelevel{group=ARMOR_SMITHING;archetype=ARMOR_SMITHING;level=>2}
          Material: GOLD_NUGGET
          Display: '&6&lLEVEL 2 ARMORSMITHING'
          Lore:
          - 'Player must be higher than level 2'
          - '&7Current armorsmithing level = &a<caster.archetype.level.ARMOR_SMITHING>'

Now lets make the scenario, I am level 5 at armor smithing and you are level 1 at armor smithing, normally you shouldnt be able to see conditional button.

If I open the menu before you open it, and you open the menu while my menu is open, you can see conditional/second button too (bypassing the condition because of me). System directly allows you to see it, thinking you are meeting the condition as well. This happens on all conditions. This issue is very important for me because all the crafting systems are based on "conditional buttons" on my server, I've been using menus for months, I'm surprised how I didnt realize this issue until today. So, it'd be great if you could fix this whenever you can.

https://streamable.com/2f2ctv

[Legacy attachment omitted]

Sign in to join the discussion.