#SKILL GUI VIEW PERMISSION

1 messages · Page 1 of 1 (latest)

snow flax
#

Hi, when I remove a permission from a user, like auraskill.skill.farming false, in the /skill gui, it still shows the item to click on the skill, how to disable it?

umbral prairie
# snow flax Hi, when I remove a permission from a user, like auraskill.skill.farming false, ...

It takes a bit of work but you can add view_conditions to the menus/skills.yml file for each context of the skill template like this:

templates:
  skill:
    contexts:
      archery:
        group: first_row
        order: 1
        material: bow
        view_conditions: # Add this section
        - permission: auraskills.skill.archery
      fighting:
        group: first_row
        order: 2
        material: iron_sword
        flags:
          - hide_attributes
        view_conditions: # Add under each skill
        - permission: auraskills.skill.fighting
snow flax
#

Thanks a lot, I will check

#

What happen if the player hasn’t the permission? Which item will appear?

umbral prairie
#

nothing, or the fill background item

#

if you need a different item you can add one in the items section

snow flax
#

ok, btw, is there a way to select more than one slot for a item?

umbral prairie
snow flax
#

How ? pos:[2,2,4,5]

tulip sparrow