#HELP DELUXEMENUS

1 messages · Page 1 of 1 (latest)

ornate python
#

I am struggling with priorities.

ornate python
#
  'SILVERLOCKED':
    material: RED_DYE
    slot: 20
    priority: 1
    update: true
    hide_attributes: true
    display_name: '&e&lʟᴇɢᴀᴄʏ ᴡᴀʀᴘꜱ'
    lore: []
    left_click_commands: []
  'SILVERUNLOCKED':
    material: WHITE_DYE
    slot: 20
    priority: 2
    update: true
    hide_attributes: true
    display_name: '&e&lʟᴇɢᴀᴄʏ ᴡᴀʀᴘꜱ'
    lore: []
    left_click_commands: []
       - '[player] warp shulker'
    view_requirement:
      requirements:
        permission:
          type: has permission
          permission: essentials.warps.test
          deny_commands:
            - "[message] &c✗ ʏᴏᴜ ᴀʀᴇ ɴᴏᴛ ᴀʟʟᴏᴡᴇᴅ ᴛᴏ ᴜꜱᴇ ᴛʜᴀᴛ ᴄᴏᴍᴍᴀɴᴅ."```

I am trying to make it so if the player does not have the permission it shows the red dye but if they do have the permission it shows the white dye selection. Does anyone know how this could be done?
#

?paste

sturdy depotBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

ornate python
sour hornet
#

The item with view requirement should have the lowest priority

ornate python
ornate python
dull trench
#

the item only shows if the view requirement is met

#

so if the view requirement is met for priority 1 item: it will show it
if it's not met for priority 1 item: it goes to the next item in line (priority 2) and the steps repeat

#

if there is no view requirement, it always will show

#

so that's why you gotta swap em

ornate python
dull trench
#

hmm, send the entire menu file in a paste

sturdy depotBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

ornate python
dull trench
#

brother I wasn't even here

#

have some patience 😂

#

you took 6 hours to reply too lol

#

yes i see the issue

#

you shouldn't have had [] next to your left click commands that you defined, and I removed the useless lore and left_click_commands for the other item too

#

you also don't need update: true on the items unless you have an update_interval defined for the menu

ornate python
#

If i get pinged I check it instantly.

#

I've pasted the new version,

I checked and when I open the menu for some reason it send me the deny commands message even though it is not there.

dull trench
#

what deny commands did it send you

#

oh probably the open requirement i see

#

do you have warplegacy.menu? @ornate python

dull trench
ornate python
#

No I do not not have that perm why?

dull trench
#

that is your open requirement, you need that perm to open the menu

#

you also do not need the deny_commands in the view requirement

ornate python
#

I removed that, did I not send the updated version here earlier.

dull trench
#

i don't see it, no

ornate python
#

There you go.

#

I did remove something, allow me to test it now.

#

Okay yes it still shows that error message that you cannot use this command.

#

And I removed all the deny commands messages.

dull trench
#

do you have another plugin that might be sending that message?

#

and blocking the command

#

@ornate python

ornate python
#

No I do not

dull trench
ornate python
#

Yes

#

Oh wait now it works for some reason, like it does not show the message, that is weird. I will continue with what I wanted to do for this menu and if all goes well I will let you know to close the post. Thanks so much for your assistance thus far 🙂

dull trench
#

ok, just fyi I can't close it, but you can