#Ranks
1 messages · Page 1 of 1 (latest)
i want to make each rank buyable one time not multiple times
how can i do that
like once purchase, i can choose the rank but without spending money again cause i already purchased it
this is my code:
open_command:
- playerranks
deny_commands:
- '&fUnknown command. Type "/help" for help.'
size: 27
items:
p-1:
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTk3MDk1MThlY2IyZmQ0OGE5ODE1YjI2YjMyMjFhMzBmMTZiZjA1MDk3MTA1ZWQwODZmNWViODE3OTkxIn19fQ==
data: 5
slot: 11
hide_attributes: true
display_name: '&6&k!!&r &6&lRANKS SHOP1 &6&k!!'
lore:
- '&7&o[SPECIAl] Rank - 1000$'
- ''
- '&8&l➥ &6Click to purchas'
left_click_commands:
- '[console] eco take %player_name% 1000'
- '[console] lp user %player_name% parent set special'
- '[message] &6&lMiningPixels >&7 You have successfully purchased 64 granite.'
left_click_requirement:
expression: '%vault_eco_balance% >= 1000'
deny_commands:
- '[close]'
- '[message] &6&lMiningPixels >&7 You do not have enough money to buy.'```
does this work?
menu_title: ' &8« &6&lRANKS SHOP&r &8»'
open_command:
- playerranks
deny_commands:
- '&fUnknown command. Type "/help" for help.'
size: 27
items:
p-1:
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTk3MDk1MThlY2IyZmQ0OGE5ODE1YjI2YjMyMjFhMzBmMTZiZjA1MDk3MTA1ZWQwODZmNWViODE3OTkxIn19fQ==
data: 5
slot: 11
hide_attributes: true
display_name: '&6&k!!&r &6&lRANKS SHOP1 &6&k!!'
lore:
- '&7&o[SPECIAl] Rank - 1000$'
- ''
- '&8&l➥ &6Click to purchas'
left_click_commands:
- '[console] eco take %player_name% 1000'
- '[console] lp user %player_name% parent set special'
- '[message] &6&lMiningPixels >&7 You have successfully purchased 64 granite.'
left_click_requirement:
expression: '%vault_eco_balance% >= 1000'
deny_commands:
- '[close]'
- '[message] &6&lMiningPixels >&7 You do not have enough money to buy.'
p-1_bought:
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTk3MDk1MThlY2IyZmQ0OGE5ODE1YjI2YjMyMjFhMzBmMTZiZjA1MDk3MTA1ZWQwODZmNWViODE3OTkxIn19fQ==
data: 5
slot: 11
hide_attributes: true
display_name: '&6&k!!&r &6&lRANKS SHOP1 &6&k!!'
lore:
- '&7&o[SPECIAl] Rank - 1000$'
- ''
- '&8&l➥ &4Already purchased'
view_requirement:
requirements:
permission:
type: "has permission"
permission: group.special
This hides
i want it so when i a player purchase a rank, it showsthat he owns it and he can click on it andselect it to get the rank prefix
ok
do you have a prefix already assigned to the group
because i can make it so it adds a prefix to the player when pressed but i need to know what prefix you want
Yes
a prefix for each group using luckperms
so you can either add a prefix permission to the player when they click the item or have extra disabled groups made which dont have the prefix and when they click the item it changes their group
i did not quite understand 😿
what you could do is not have a prefix in the group,