With this plugin, you can create special prefixes with categories that can be sold for any currency.
To create a category with a prefix, you need to go to the categories folder and create a text document with any name, I have one.
example one.yml:
Code (Text):
name-category: "&6Category name"
price-all-prefixes: 200
vault: POINTS # or MONEY
prefixes:
test:
name: "&6TEST"
vault: POINTS
price: 100
tests:
name: "&6TESTS"
vault: MONEY
price: 100
example config.yml:
Code (Text):
database:
host: "localhost"
port: 3306
database: ""
username: ""
password: ""
message:
help-user:
- "&6● &8| BAFFPREFIX &7/prefix storage - Open a warehouse of your prefixes"
- "&6● &8| /prefix shop - Open a prefix store"
help-admin:
- "&6● &8| &7/prefix storage - Open a warehouse of your prefixes"
- "&6● &8| &7/prefix shop - Open a prefix store"
- "&6● &8| &7/prefix giveprefix - Issue a prefix"
- "&6● &8| &7/prefix givecategory - Issue a category"
no-perm: "&6● &8| &cNot enough rights"
prefix-already-buy: "&6● &8| &cThe console has already been purchased!"
no-found-points: "&6● &8| &cNot enough points"
no-found-money: "&6● &8| &Not enough coins"
buy-prefix: "&6● &8| &aYou bought a prefix!"
set-prefix: "&6● &8| &aYou have set the prefix!"
clear-prefix: "&6● &8| &aYou have cleared the prefix!"
icons:
storage:
take:
material: book
name: "%prefix%"
lore:
- "&aThe prefix is taken"
glow: true
no-take:
material: book
name: "%prefix%"
lore:
- "&cPrefix not taken"
category:
material: chest
name: ""
lore:
- ""
shop:
buy:
material: book
name: "%prefix%"
lore:
- "&aPrefix purchased"
glow: true
no-buy:
material: book
name: "%prefix%"
lore:
- "&cPrefix not purchased"
- " "
- "&fPrice: %price%"
inventories:
storage:
title: "&0Your titles"
size: 54
slots-prefix:
- 10
items:
exit:
material: barrier
name: "to close"
lore:
- ""
action: close # open-storage
slot: 45
cat:
material: barrier
name: "categories"
lore:
- ""
action: open-categories # open-storage
slot: 53
next:
material: barrier
name: "purchases"
lore:
- ""
action: open-storage # open-storage
slot: 49
black:
material: BLACK_STAINED_GLASS_PANE
name: ""
slots:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 18
- 27
- 36
- 17
- 26
- 35
- 45
categories:
title: "&0Categories"
size: 54
slots-prefix:
- 10
items:
exit:
material: barrier
name: "to close"
lore:
- ""
action: close # open-storage
slot: 45
cat:
material: barrier
name: "Categories"
lore:
- ""
action: open-categories # open-storage
slot: 53
next:
material: barrier
name: "purchases"
lore:
- ""
action: open-storage # open-storage
slot: 49
black:
material: BLACK_STAINED_GLASS_PANE
name: ""
slots:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 18
- 27
- 36
- 17
- 26
- 35
- 45
shop:
title: "&0Покупка префиксов"
size: 54
slots-prefix:
- 10
- 11
- 12
items:
exit:
material: barrier
name: "to close"
lore:
- ""
action: close # open-storage
slot: 45
cat:
material: barrier
name: "Categories"
lore:
- ""
action: open-categories # open-storage
slot: 53
next:
material: barrier
name: "purchases"
lore:
- ""
action: open-storage # open-storage
slot: 49
black:
material: BLACK_STAINED_GLASS_PANE
name: ""
slots:
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 18
- 27
- 36
- 17
- 26
- 35
- 45
gav