#Rank menu

1 messages · Page 1 of 1 (latest)

placid gust
#

Hi, I'm trying to make a menu where you have x amount of ranks that you can buy in a "leveling" kind of system. So you would have to buy the first rank to buy the second and second to buy the third and so on.

So right now I have no trouble going from "first rank" to 6th rank where you can buy them in steps. And it should work like this: when you have no rank, then a yellow block shows that you can buy and the other ranks should be a red block that you cant buy. Then when you have the first rank then it would be a green block and the second block would be yellow and the rest red and so on.

But right now it only shows 3 blocks at a time and not the rest.

Please give a helping hand i have been going at this for a long time now xD
https://paste.helpch.at/nanacocabi.vbnet

lean saddle
#

Hey sorry

#

I saw this after a long time but

#

Your code is wrong here

#

'Beginner Rank':
material: YELLOW_CONCRETE
slot: 11
priority: 1
view_requirement:
requirements:
anything_here:
type: has permission
permission: group.beginner
display_name: '&eBeginner Rank'
lore:
- ''
- '&fClick to buy Beginner rank'
- ''
- ''
- ''
Left_click_requirement:
Requirements:
Anythinghere:
Type: has permission
Permission: group.beginner
left_click_commands:
- '[close]'
- '[console] lp user %player_name% parent settrack ranks beginner'
- '[message] bought beginner'
- '[console] lp user %player_name% permission set rank1'
right_click_commands:
- '[close]'
- '[console] lp user %player_name% parent settrack ranks beginner'
- '[message] bought beginner'
- '[console] lp user %player_name% permission set rank1'
'Owns beginner rank':
material: LIME_CONCRETE
slot: 11
priority: 2
view_requirement:
requirements:
anything_here:
type: string equals ignorecase
input: '%luckperms_has_permission_rank1%'
output: 'yes'
display_name: '&eBeginner rank'
lore:
- ''
- '&fYou already own the Beginner rank'
- ''
- ''
- ''
- ''
left_click_commands:
- '[close]'
- '[message]You own the rank already'
right_click_commands:
- '[close]'
- '[message]You own the rank already'

#

The set track option is OK in the commands but the view requirement should be has permission or a certain amount of economy to buy the rank

#

For example you run this command and see

#

'thugprefix':
material: PAPER
slot: 18
priority: 1
enchantments:
- DURABILITY;1
hide_enchantments: true
display_name: '&8&l[&a&lThug&8&l] &e&lShop'
lore:
- '&f'
- '&7 ► &fYou need &a&lThug Rank'
- '&f to access this &e&lShop'
- '&1'
- '&c&l Rank Check》%luckperms_prefix%'
- '&f &a&lYes! &fyou have this &c&lRank'
- '&7 (&a&l✔&7)'
view_requirement:
requirements:
has_permission:
type: has permission
permission: group.thug
click_commands:
- '[close]'
- '[message] &f Thank You Buying &a&lThug Rank&f!'
- '[message] &fThis is just one of the &c&lRank''s &9&lPerks'
'thugnoprefix':
material: PAPER
slot: 18
priority: 2
display_name: '&8&l[&a&lThug&8&l] &e&lShop'
lore:
- '&f'
- '&7 ► &fYou need &a&lThug Rank'
- '&f to access this &e&lShop'
- '&1'
- '&c&l Rank Check》%luckperms_prefix%'
- '&f &c&lNo! &fyou do not have this &c&lRank'
- '&7 (&c&l✘&7)'

#

'criminalnoprefix':
material: PAPER
slot: 27
priority: 2
display_name: '&8&l[&1&lCriminal&8&l] &e&lShop'
lore:
- '&f'
- '&7 ► &fYou need &1&lCriminal Rank'
- '&f to access this &e&lShop'
- '&1'
- '&c&l Rank Check》%luckperms_prefix%'
- '&f &c&lNo! &fyou do not have this &c&lRank'
- '&7 (&c&l✘&7)'

'crusteousprefix':
material: PAPER
slot: 36
priority: 1
enchantments:
- DURABILITY;1
hide_enchantments: true
display_name: '&d&k|&8&l[&c&lCrusteous&8&l]&d&k|&r &e&lShop'
lore:
- '&f'
- '&7 ► &fYou need &c&lCrusteous Rank'
- '&f to access this &e&lShop'
- '&1'
- '&c&l Rank Check》%luckperms_prefix%'
- '&f &a&lYes! &fyou have this &c&lRank'
- '&7 (&a&l✔&7)'
view_requirement:
requirements:
has_permission:
type: has permission
permission: group.crusteous
click_commands:
- '[close]'
- '[message] &f Thank You Buying &c&lCrusteous Rank&f!'
- '[message] &fThis is just one of the &c&lRank''s &9&lPerks'
'crusteousnoprefix':
material: PAPER
slot: 36
priority: 2
display_name: '&c&k|&8&l[&c&lCrusteous&8&l]&c&k|&r &e&lShop'
lore:
- '&f'
- '&7 ► &fYou need &c&lCrusteous Rank'
- '&f to access this &e&lShop'
- '&1'
- '&c&l Rank Check》%luckperms_prefix%'
- '&f &c&lNo! &fyou do not have this &c&lRank'
- '&7 (&c&l✘&7)'

#

Put this code in a new menu and try

#

And try figuring out how these work here