#How to make permission shop

1 messages · Page 1 of 1 (latest)

alpine vortex
#

How do I make a requirement for my tag be a permission/rank from luckperms

  '#1':
    material: NAME_TAG
    slot: 1
    display_name: '&6&l#1 Tag'
    lore:
    - '&8Coinshop Item'
    - ''
    - "&6❖ &fCost: &6300 Coins"
    - ''
    - '&e➥ &lCLICK TO BUY'
    left_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '300'
      deny_commands:
      - '[message] &f'
      - '[message] &eCoinshop &8➟ &cYou do not have enough for the &l#1 Tag&c!'
      - '[message] &eCoinshop &8➟ &fPurchase more coins here: &c&nstore.plateousmp.xyz'
      - '[message] &f'
    right_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '300'
      deny_commands:
      - '[message] &f'
      - '[message] &eCoinshop &8➟ &cYou do not have enough for the &l#1 Tag&c!'
      - '[message] &eCoinshop &8➟ &fPurchase more coins here: &c&nstore.plateousmp.xyz'
      - '[message] &f'
    left_click_commands:
    - '[console] points take %player_name% 300'
    - '[console] give %player_name% GRANITE 1'
    - '[message] &f'
    - '[message] &eCoinshop &8➟ &aYou''ve purchassed the &c&l#1 Tag&a!'
    - '[message] &f'
    right_click_commands:
    - '[console] points take %player_name% 300'
    - '[console] give %player_name% GRANITE 1'
    - '[message] &f'
    - '[message] &eCoinshop &8➟ &aYou''ve purchassed the &c&l#1 Tag&a!'
    - '[message] &f'```\
muted parcel
covert tree
#

What Exisstory said is correct, yeh. And to make it require a rank, you can use the same requirement because in LuckPerms every rank has a default permission. group.RANKNAME. So you can just check for that permission instead of checking for a rank.

alpine vortex
#
    material: PINK_DYE
    slot: 20
    display_name: '&d&lPink Chat Color'
    lore:
    - '&8Coinshop Item'
    - ''
    - "&6❖ &fCost: &6400 Coins"
    - ''
    - '&e➥ &lCLICK TO BUY'
    left_click_requirement:
      requirements:
        anything_here:
          type: 'has permission'
          input: '%playerpoints_points%'
          output: '400'
      deny_commands:
      - '[message] &f'
      - '[message] &e&lCoinshop &8➟ &cYou do not have enough for the &d&lPink Chat Color'
      - '[message] &e&lCoinshop &8➟ &fPurchase more coins here: &c&nstore.plateousmp.xyz'
      - '[message] &f'
    right_click_requirement:
      requirements:
        anything_here:
          type: '>='
          input: '%playerpoints_points%'
          output: '400'
      deny_commands:
      - '[message] &f'
      - '[message] &e&lCoinshop &8➟ &cYou do not have enough for the &d&lPink Chat Color'
      - '[message] &e&lCoinshop &8➟ &fPurchase more coins here: &c&nstore.plateousmp.xyz'
      - '[message] &f'
    left_click_commands:
    - '[console] points take %player_name% 400'
    - '[console] lp user %player_name% permission set ezcolors.color.pink true'
    - '[message] &f'
    - '[message] &e&lCoinshop &8➟ &aYou''ve purchassed the &d&lPink Chat Color'
    - '[message] &f'
    right_click_commands:
    - '[console] points take %player_name% 400'
    - '[console] lp user %player_name% permission set ezcolors.color.pink true'
    - '[message] &f'
    - '[message] &e&lCoinshop &8➟ &aYou''ve purchassed the &d&lPink Chat Color'
    - '[message] &f'```
#

I want to make it so you cant buy it more then once

#

So how would I make it if they already get the chat color and then try to purchase it again and type it

#

I checked wiki it didn't help much as its minimal tutorial and no example can you just help?

muted parcel
alpine vortex
#

sounds good

muted parcel
# alpine vortex sounds good
    material: PINK_DYE
    slot: 20
    display_name: '&d&lPink Chat Color'
    lore:
    - '&8Coinshop Item'
    - ''
    - "&6❖ &fCost: &6400 Coins"
    - ''
    - '&e➥ &lCLICK TO BUY'
    # Changed this to click requirements as the reqs you use for left & right are the same.
    click_requirement:
      minimum_requirements: 2
      requirements:
        has_coins_to_buy:
          type: '>='
          input: '%playerpoints_points%'
          output: '400'
          deny_commands:
          - '[message] &f'
          - '[message] &e&lCoinshop &8➟ &cYou do not have enough for the &d&lPink Chat Color'
          - '[message] &e&lCoinshop &8➟ &fPurchase more coins here: &c&nstore.plateousmp.xyz'
          - '[message] &f'
        # This permission is the one that checks to see if the player already that color.
        already_has_color:
          type: '!has permission'
          # add the color/tag/etc etc that you want it to check for.
          permission: 'ezcolors.color.pink'
          deny_commands:
          - '[message] &f'
          - '[message] &e&lCoinshop &8➟ &cYou already have the &d&lPink Chat Color'
          - '[message] &f'
    # changed this to click commands as the commands were the same for left & right.
    click_commands:
    - '[console] points take %player_name% 400'
    - '[console] lp user %player_name% permission set ezcolors.color.pink true'
    - '[message] &f'
    - '[message] &e&lCoinshop &8➟ &aYou''ve purchassed the &d&lPink Chat Color'
    - '[message] &f'```
#

here ya go

#

^ use this for copy and paste

#

i've added in a few comments explaining everything

alpine vortex
muted parcel
alpine vortex
#

you even matched the lore and messages ur so helpful xd tysm