#Deluxe menu I'm having priority issues

1 messages · Page 1 of 1 (latest)

distant comet
#
open_command: prestige_0
size: 45
update_interval: 1

items:

  #############################################################

  'novice-1p0':
    material: DIAMOND
    slot: 10
    display_name: "&aNovice I"
    lore:
      - "&7Cliquez pour acheter ce grade"
    priority: 1
    view_requirement:
      requirements:
        group:
          type: not in group
          group: novice-1p0
    left_click_commands:
      - "[console] eco take %player_name% 100"
      - "[console] lp user %player_name% parent add novice-1p0"
      - "[refresh]"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"

  'novice-1p0_claimed':
    material: DIAMOND
    slot: 10
    display_name: "&c&lNovice I &8&l▪ &7&lDéjà acheté"
    lore:
      - "&7Vous avez déjà acheté ce grade."
    view_requirement:
      requirements:
        group:
          type: in group
          group: novice-1p0```
#

when I open the minuet that I use the object it makes me pay it gives me the role unfortunately I can click several times and I would like that we could buy it only once and then it goes directly to the 'novice-1p0_claimed'
for the purchase option and description to change

trail shoal
#

in group and not in group are not requirement types @distant comet

distant comet
#

ah

trail shoal
#

also, not that it really matters

#

but conventionally: I would have priority 1 be in group and priority 2 have no view requirements

#

since it would only show if the view requirements for the priority 1 item aren't met

#

and hide_if_not_met is also not a thing

#

do you use luckperms @distant comet ?

distant comet
#

yes

trail shoal
#

do you want to check if the user is IN the group, or inherits the group? (Can higher ranks access lower rank items?)

#

oh probably inherits by what I see

distant comet
#

the goal is that when we buy it we get the role and then they tell us that we already have the role and that we can't buy it again

trail shoal
#

also fyi, you can use click_commands instead of left_click_commands for ALL click types

distant comet
#

incredible it's been 6 hours that I've been banging my teeth on it I wanted to fuck myself up I sincerely thank you @trail shoal

trail shoal
#

no problem!

turbid coveBOT
trail shoal
#

these links might assist in the future

distant comet
#

👍

#

I don't even know how to thank you 🤩

trail shoal
#

no need, I'm just glad it's working

#

😊

distant comet
#
open_command: prestige_0
size: 45
update_interval: 1

items:

  #############################################################

  'page_previous':
    material: PAPER
    model_data: 110007
    slot: 0
    display_name: '&f&lPrécédent page'
    left_click_commands:
      - "[openguimenu] prestige_0"

  #############################################################

  'page_next':
    material: PAPER
    model_data: 110007
    slot: 43
    display_name: '&f&lProchaine page'
    left_click_commands:
      - "[openguimenu] prestige_1"

  #############################################################

  'back':
    material: PAPER
    model_data: 110007
    slots:
      - 37
      - 38
      - 39
    update: true
    display_name: '&c&lRetour'
    left_click_commands:
      - "[openguimenu] main_menu"

  #############################################################

  'novice-1p0':
    material: DIAMOND
    slot: 10
    display_name: "&aNovice I"
    lore:
      - '&e➥ Clic gauche pour exécuter'
    priority: 2
    left_click_commands:
      - "[console] eco take %player_name% 100"
      - "[console] lp user %player_name% parent add novice-1p0"
      - "[refresh]"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"

  'novice-1p0_claimed':
    material: DIAMOND
    slot: 10
    display_name: "&c&lNovice I &8&l▪ &7&lDéjà acheté"
    lore:
      - "&7Vous avez déjà acheté ce grade."
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_novice-1p0%'
          output: 'yes'
    priority: 1

  #############################################################
  
  'novice-2p0':
    material: DIAMOND
    slot: 11
    display_name: "&aNovice II"
    lore:
      - '&e➥ Clic gauche pour exécuter'
    priority: 2
    left_click_commands:
      - "[console] eco take %player_name% 100"
      - "[console] lp user %player_name% parent add novice-2p0"
      - "[refresh]"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"

  'novice-2p0_claimed':
    material: DIAMOND
    slot: 11
    display_name: "&c&lNovice II &8&l▪ &7&lDéjà acheté"
    lore:
      - "&7Vous avez déjà acheté ce grade."
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_novice-2p0%'
          output: 'yes'
    priority: 1

  #############################################################

Okay I have a little question let's admit that if I want to make sure that you have to buy the lower role to buy the new one can I? example: points I want to buy grade 2 but I don't have grade 1 I would like it to be blocked is it possible that it even adds that you have to buy the lower grade ?

trail shoal
#

so for the priority: 2 item, add a view requirement that is identical to the one for novice-1p0_claimed

#

you can copy and paste

#

and then, if you want, you can add a 3rd item to slot 11 with priority: 3 that shows a "locked" item

distant comet
#
open_command: prestige_0
size: 45
update_interval: 1

items:

  #############################################################

  'page_previous':
    material: PAPER
    model_data: 110007
    slot: 0
    display_name: '&f&lPrécédent page'
    left_click_commands:
      - "[openguimenu] prestige_0"

  #############################################################

  'page_next':
    material: PAPER
    model_data: 110007
    slot: 43
    display_name: '&f&lProchaine page'
    left_click_commands:
      - "[openguimenu] prestige_1"

  #############################################################

  'back':
    material: PAPER
    model_data: 110007
    slots:
      - 37
      - 38
      - 39
    update: true
    display_name: '&c&lRetour'
    left_click_commands:
      - "[openguimenu] main_menu"

  #############################################################

  'novice-1p0_locked':
    material: DIAMOND
    slot: 10
    display_name: '&c&lNovice I &8&l▪ &7&lBloqué!'
    lore:
      - '&7Vous devez acheter le grade précédent'
      - '&7avant de pouvoir acheter ce grade.'
    priority: 3
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_default%'
          output: 'yes'
  
  'novice-1p0':
    material: DIAMOND
    slot: 10
    display_name: "&aNovice I"
    lore:
      - '&e➥ Clic gauche pour exécuter'
    priority: 2
    left_click_commands:
      - "[console] eco take %player_name% 100"
      - "[console] lp user %player_name% parent add novice-1p0"
      - "[refresh]"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"

  'novice-1p0_claimed':
    material: DIAMOND
    slot: 10
    display_name: "&c&lNovice I &8&l▪ &7&lDéjà acheté"
    lore:
      - "&7Vous avez déjà acheté ce grade."
    priority: 1
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_novice-1p0%'
          output: 'yes'

  #############################################################
  
  'novice-2p0_locked':
    material: DIAMOND
    slot: 10
    display_name: '&c&lNovice II &8&l▪ &7&lBloqué!'
    lore:
      - '&7Vous devez acheter le grade précédent'
      - '&7avant de pouvoir acheter ce grade.'
    priority: 3
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_novice-1p0%'
          output: 'yes'

  'novice-2p0':
    material: DIAMOND
    slot: 11
    display_name: "&aNovice II"
    lore:
      - '&e➥ Clic gauche pour exécuter'
    priority: 2
    left_click_commands:
      - "[console] eco take %player_name% 100"
      - "[console] lp user %player_name% parent add novice-2p0"
      - "[refresh]"
      - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"

  'novice-2p0_claimed':
    material: DIAMOND
    slot: 11
    display_name: "&c&lNovice II &8&l▪ &7&lDéjà acheté"
    lore:
      - "&7Vous avez déjà acheté ce grade."
    priority: 1
    view_requirement:
      requirements:
        group:
          type: string equals
          input: '%luckperms_inherits_group_novice-2p0%'
          output: 'yes'

  #############################################################```


Could it work like this?
trail shoal
#

uh

#

not quite

trail shoal
#

Oh I see you also added a 3rd item for Novice I

#

but that shouldn't be needed, because it will be available for all users, right?

#

(everybody starts with default rank)

distant comet
#

ah you succeeded again but you are truly a genius

trail shoal
trail shoal
#

All users aren't default rank? thonking

distant comet
#

it's a subcategory but it works in any case it's perfect

trail shoal
#

I don't think you'll ever see the 'novice-1p0_locked'

#

either way the menu will work

distant comet
#

to sort the roles anyway it's my mic mac

trail shoal
#

ahh there's an issue

#

move the view requirement from 'novice-1p0_locked' to 'novice-1p0'

#

because, as it is now, 'novice-1p0_locked' will never show because there is no view requirement on 'novice-1p0, so that will ALWAYS show before 'novice-1p0_locked'

#

if that makes sense

#

wait

#

i made an error wtf

distant comet
#

thank you for your help and I learn a lot

trail shoal
#

of course! 😊

distant comet
#

❤️

distant comet
#

Hello, could you perhaps still help me today @trail shoal ? The goal is to create a daily reward I will put the rewards myself after that I know how to do it but I would like there to be a system immediately example : to buy day 1 I just have to have the default role and I can take it at any time there is no problem once I have taken it and it has given me the days 1 role I cannot plus recover the reward from days1 to the second I obtain the days1 role I would like there to be a 24 hour delay before the player takes day2 so on but if the player does not collect the next role within 48 hours I want it to start from the beginning message I will I just need your help to make a little pattern because I'm having difficulty making it work

menu_title: '&f七七七七七七七七╯'
open_command: daily_rewards2
size: 54
update_interval: 1

items:

  #############################################################
  'jours1':
    material: PAPER
    model_data: 3301
    slot: 12
    display_name: 'Jours 1'
    lore:
      - '&7Cliquez pour récupérer votre récompense du Jours 1.'
    click_commands:
      - '[console] lp user %player_name% parent addtemp jours1 24h'
    view_requirement:
      requirements:
        has_group:
          type: not
          groups:
            - jours1
    update: true

  'jours1_obtained':
    material: BARRIER
    slot: 12
    display_name: '&cJours 1 déjà obtenu'
    lore:
      - '&7Vous avez déjà récupéré votre récompense du Jours 1.'
      - '&7Revenez demain pour récupérer votre récompense du Jours 2.'
      - '&7Temps restant: &a%luckperms_expiry_time_jours1%'
    view_requirement:
      requirements:
        has_group:
          type: or
          groups:
            - jours1
    update: true

  #############################################################
  'jours2':
    material: PAPER
    model_data: 3301
    slot: 14
    display_name: 'Jours 2'
    lore:
      - '&7Cliquez pour récupérer votre récompense du Jours 2.'
    click_commands:
      - '[console] lp user %player_name% parent addtemp jours2 24h'
    view_requirement:
      requirements:
        has_group:
          type: and
          groups:
            - jours1
        elapsed:
          time: 24h
          after: addtemp
          action: true
    update: true

  'jours2_locked':
    material: BARRIER
    slot: 14
    display_name: '&cJours 2 verrouillé'
    lore:
      - '&7Vous devez attendre 24 heures après avoir récupéré Jours 1.'
      - '&7Temps restant: &a%luckperms_expiry_time_jours1%'
    view_requirement:
      requirements:
        has_group:
          type: and
          groups:
            - jours1
        elapsed:
          time: 24h
          after: addtemp
          action: false
    update: true

  #############################################################

  'back':
    material: PAPER
    model_data: 110007
    slots:
      - 46
      - 47
      - 48
    update: true
    display_name: '&c&lRetour'
    click_commands:
      - '[player] dr'

  #############################################################

I wrote this for the moment but obviously it doesn't work 😅

rugged cobalt
#

basically you want this
-you can get day1 with default but you'd require day1 to get day2 that too with a 24 hour delay (just like a streak system)
-if a player doesnt click on day2 item under 48 hours, they will lose the streak and will be given default back

#

am i correct 🤔

distant comet
#

yes

rugged cobalt
#

would you mind if i create the menu in english?

distant comet
#

nop

#

in any case I'm stuck

rugged cobalt
#

well this might require intense configuration, though ill try my best

#

could you share your luckperms editor through DMs?

rugged cobalt
#

cant find a way to clear the groups if they haven't claimed

#

if we use group expiry time, then all the groups wont be cleared at the same time

distant comet
#

you have to use the tracks at the same time but I don't know how to do it

rugged cobalt
#

can you test something

distant comet
#

yes

rugged cobalt
#

create a track with 2 groups, give that track to a player and then use lp commands to remove the track and tell if it does remove all the groups at the same time

distant comet
#

comment on this

#

when we use a track, several groups merge ?

rugged cobalt
#

kind of yes but its like promotion

#

you upgrade the position of the player group using commands

rugged cobalt
distant comet
#

in fact the question would be can we make a role whatever happens after a certain time they are removed from the person thanks to that it would be possible

#

is there a function to put an expiration time but not on the player on the group and which activates the moment it is on someone for the person ?

rugged cobalt
#

like i said above, even if theres an expiration time, how we will tell it to start from a specific instant?

distant comet
#

well you know what to drop I don't think it's possible thank you anyway for your time

rugged cobalt
#

no.

#

its not impossible

#

im talking with a moderator

#

.

trail shoal
#

it's possible, but very very complicated and not something I could really assist with due to the time required

#

would be better to have a custom plugin tbh

rugged cobalt
#

@carmine saddle

carmine saddle
#

yeah?

carmine saddle
#

oh

#

well gl with that

rugged cobalt
#

yeah so

#

does min_req thing work in 1.10

carmine saddle
#

nope

rugged cobalt
#

sadly

#

i think i should just

#

upgrade

carmine saddle
#

yes