#Verification error

1 messages · Page 1 of 1 (latest)

late iron
#

I've created a menu, but for some reason the view_requirment doesn't work

A DeluxeMenus advanced configuration guide

# =========================================================
menu_title: '&7Cumpara Battle Pass Premium'
open_command:
  - bpremium
open_commands:
  - '[sound] BLOCK_BEACON_ACTIVATE'
size: 27
# as always, only cool people can open this menu :)
items:
  battlepas:
    material: DIAMOND
    slot: 13
    update: true
    hide_attributes: true
    display_name: "&bBattle Pass Premium"
    lore:
      - ""
      - "&fIti ofera battle pass-ul de"
      - "&ftip: &bpremium&f pe &b31&f de zile"
      - ""
      - "&bPret:"
      - " &7• &b250&f Prime Coins"
    view_requirement:
      requirements:
        test:
          type: "!has permission"
          entry: battlepass.premium
    click_commands:
      - '[console] lp user %player% permission settemp battlepass.premium 31d'
      - '[message] &b&lPREALM&f • &fAi cumparat &bBattle Pass Premium &f(31d)&f pentru: &b250&f Prime Coins!'
      - '[close]'
    click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '250'
      deny_commands: 
        - '[message] &b&lPREALM&f •&f Balanta insuficienta, produsul costa: &b250&f Prime Coins!'
        - '[close]'
oblique dune
#

same error occured to me

#

use string equals instead of has permission

#

its error in permissions

#

change has permission to string equals

type: "string equals"
input: %luckperms_inherits_permission_(perm)%
output: yes

frank pilot
#

entry: battlepass.premium should be permission: battlepass.premium

oblique dune
#

you could still do it like this

type: string equals
input: '%luckperms_inherits_permission_battlepass.premium'
output: 'yes'

frank pilot
#

That's messy and LP inherit placeholders don't always work with DM.

manic surge
#

@oblique dune

#

Do you want a menu that allows you to buy a premium?

If the player has 250 points then you give him permission for 31 days.

#

You have several errors in the menu.

When you give permission you have an error %player% does not work you need %player_name%

#

Also with your view requirement entry is not the right thing. You have to use permission