#permission system not working

1 messages · Page 1 of 1 (latest)

devout finch
#

as you can see on the screen, it says that i have perm BUT i actually dont

`menu_title: '&9Mines'
open_command:

  • mine
  • mines
  • menumine
    size: 27
    items:
    'unlock':
    material: DIRT
    slot: 11
    priority: 1
    update: true
    hide_attributes: true
    display_name: '&bUnLocked'
    lore:
    - 'You Can TP To This Mine'
    view_requirement:
    requirements:
    unlock_requirement:
    type: has permission
    permission: essentials.warps.test
    left_click_commands:
    - '[player] warp test'
    - '[close]'
    'locked':
    material: COBBLESTONE
    slot: 11
    priority: 2
    update: true
    hide_attributes: true
    display_name: '&cLocked Mine'
    lore:
    - '&7You Must Level Up'
    view_requirement:
    requirements:
    unlock_requirement:
    type: "!has permission"
    permission: essentials.warps.test`
keen vault
#

you're probably OP

devout finch
#

nop

keen vault
#

what's your permission plugin?

devout finch
#

LP

#

when i click on the item

keen vault
#

/lp user <player> permission check essentials.warps.test

devout finch
#

i dont have perm to tp

keen vault
#

you forgot spaces

#

before type and permission

#

also, the view_requirement for the second item is redundant

devout finch
keen vault
#

it's not necessary

devout finch
#

oh

#

like this ?

keen vault
#

yes

#

as long as the first item with the view requirement has a priority of 1 and the second has a priority of 2, it should work fine

#

though you still need the correct syntax for the view requirement

devout finch
#

it work like this

keen vault
#

looks good

devout finch
#

so now i litteraly need to duplicate this like 30 times for the 30 mines :')

#

ty for your help bro !

keen vault
#

ah 😅

#

gl

#

don't forget to make your items' names different

#

instead of simply unlock and locked

devout finch
#

oh like mine1lock

keen vault
#

yeah

devout finch
#

mine2lock

keen vault
#

otherwise it won't load other items