#Tanguygab Please help

1 messages · Page 1 of 1 (latest)

rustic dirge
#

Players do have view permission for claim rewards item but it is not working, first item should've changed to second priotroy since player has permission

  'combat_level_2':
    material: RED_STAINED_GLASS_PANE
    slot: 18
    amount: 2
    priority: 2
    display_name: "&c&lᴄᴏᴍʙᴀᴛ ʟᴇᴠᴇʟ &c#&l2"
    lore:
    - ""
    - "&7Upgrade your &ecombat &7level to earn a "
    - "&bhandful &7amount of &acash&7!"
    - "&r"
    - "&8ʏᴏᴜʀ ʀᴇᴡᴀʀᴅ:"
    - "&a| &2▪ &2&l$&a&l100"
    - "&r"
    - "&c► ʏᴏᴜ ᴄᴀɴ'ᴛ ᴄʟᴀɪᴍ ᴛʜɪꜱ ʀᴇᴡᴀʀᴅ ʏᴇᴛ! &r"
    click_commands:
      - '[refresh]'
     
  'combat_level_2_claim':
    material: YELLOW_STAINED_GLASS_PANE
    slot: 18
    amount: 2
    priority: 1
    display_name: "&a&lᴄᴏᴍʙᴀᴛ ʟᴇᴠᴇʟ &a#&l2"
    view_requirement:
      requirements:
        check_permission:
          type: has permission
          permission: meta.combat.completed.2
    lore:
    - ""
    - "&7Upgrade your &ecombat &7level to earn a "
    - "&bhandful &7amount of &acash&7!"
    - "&r"
    - "&8ʏᴏᴜʀ ʀᴇᴡᴀʀᴅ:"
    - "&a| &2▪ &2&l$&a&l100"
    - "&r"
    - "&a► ᴄʟɪᴄᴋ ʜᴇʀᴇ ᴛᴏ ᴄʟᴀɪᴍ ᴛʜɪꜱ ʀᴇᴡᴀʀᴅ! &r"
    click_commands:
      - '[givemoney] 100'
      - '[givepermission] combat.completed.2'
      - "[sound] ENTITY_PLAYER_LEVELUP"
      - "[message] &a&l(!) &aYou have successfully completed &eCombat &eLevel #2&a!"
      - '[refresh]'
      
  'combat_level_2_completed':
    material: LIME_STAINED_GLASS_PANE
    slot: 9
    amount: 2
    priority: 0
    display_name: "&a&lᴄᴏᴍʙᴀᴛ ʟᴇᴠᴇʟ &a#&l2"
    view_requirement:
      requirements:
        check_permission:
          type: has permission
          permission: combat.completed.2
    lore:
    - ""
    - "&7Upgrade your &ecombat &7level to earn a "
    - "&bhandful &7amount of &acash&7!"
    - "&r"
    - "&8ʏᴏᴜʀ ʀᴇᴡᴀʀᴅ:"
    - "&a| &2▪ &2&l$&a&l100"
    - "&r"
    - "&a► ʏᴏᴜ ʜᴀᴠᴇ ᴄᴏᴍᴘʟᴇᴛᴇᴅ ᴛʜɪꜱ ʟᴇᴠᴇʟ &r"
rustic dirge
#

there's no errro, look at first item it is in priority 2 and second item is in priority 1 so if second item view requirments match then it should be shown but it is not showing

OP gives all permissions so I'm also getting combat.completed.2 which shows and 3rd item ignoring 1st and second while my test account doesn't have any permissions but meta.combat.completed.2 which should show second item but it is not

bright steppe
#

/lp user <test account> permission check meta.combat.completed.2

rustic dirge
bright steppe
#

it's not supposed to work

rustic dirge
#

Test account does hai that permission

bright steppe
#

it's supposed to show you something in chat

#

send a screenshot of the command result

#

and your entire menu file

rustic dirge
bright steppe
#

run the command and take a screenshot of what it says in the chat

rustic dirge
#

oh

#

Yea it says that test account have that permission

#

Yes test account does have that permission