Help with DeluxeMenus (view_requirement)

Status
This thread has been locked.

PrimevalHD

Feedback score
0
Posts
37
Reactions
4
Resources
0
Hey, I'm trying to make it so that if a player does not have a permission they will see, A.K.A the 'Locked' version:
Code:
      '37':
        material: 421
        slot: 25
        priority: 2
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &c&lLocked'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
I have added the following from below to the 'Unlocked version', which I want it to check the view_requirement first. But it seems to be skipping it and appearing as 'Unlocked' even thought they don't have the permission, what am I doing wrong?
Code:
      '36':
        material: 421
        slot: 25
        priority: 1
        view_requirement: 'BukkitPlayer.hasPermission("deluxetags.tag.Farmer")'
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &a&lUNLOCKED'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
Any help would be greatly appreciated! Thank you very much.
 
Last edited:
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Qav

Configurations / Setups
Premium
Feedback score
10
Posts
152
Reactions
28
Resources
0
Add me on discord ak521#6596
 

GabyTM

@gabytm / gabytm.me/discord
Supreme
Feedback score
44
Posts
425
Reactions
191
Resources
6
Hey, I'm trying to make it so that if a player does not have a permission they will see, A.K.A the 'Locked' version:
Code:
      '37':
        material: 421
        slot: 25
        priority: 2
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &c&lLocked'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
I have added the following from below to the 'Unlocked version', which I want it to check the view_requirement first. But it seems to be skipping it and appearing as 'Unlocked' even thought they don't have the permission, what am I doing wrong?
Code:
      '36':
        material: 421
        slot: 25
        priority: 1
        view_requirement: 'BukkitPlayer.hasPermission("deluxetags.tag.Farmer")'
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &a&lUNLOCKED'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
Any help would be greatly appreciated! Thank you very much.
We've made a better DeluxeMenus wiki, you can check it (it also contain an example for your request)
https://github.com/help-chat/deluxemenus/wiki#example-gui-menus
 

TheCamoWaffle

Owner of Ocean
Premium
Feedback score
16
Posts
507
Reactions
100
Resources
0
Hey, I'm trying to make it so that if a player does not have a permission they will see, A.K.A the 'Locked' version:
Code:
      '37':
        material: 421
        slot: 25
        priority: 2
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &c&lLocked'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
I have added the following from below to the 'Unlocked version', which I want it to check the view_requirement first. But it seems to be skipping it and appearing as 'Unlocked' even thought they don't have the permission, what am I doing wrong?
Code:
      '36':
        material: 421
        slot: 25
        priority: 1
        view_requirement: 'BukkitPlayer.hasPermission("deluxetags.tag.Farmer")'
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &a&lUNLOCKED'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
Any help would be greatly appreciated! Thank you very much.

Code:
      '37':
        material: 421
        slot: 25
        priority: 2
        view_requirement:
          permission:
            type: permission
            permission: ‘permission.node’
        display_name: '&2&l[&e&lFarmer&2&l]'
        lore:
        - '&7Status: &c&lLocked'
        - '&7(&c&l!&7) &7Unlocked via shop.primeskies.net!'
I think that should work, just replace permission.node with the node.
 

frxq

Developer
Supreme
Feedback score
27
Posts
479
Reactions
187
Resources
3
if I ever get this problem, I just use placeholderapi with javascript placeholders.
 
Status
This thread has been locked.
Top