Added permissions to the wands so you can know who can use what wand.
If you want to add permissions to a wand do this:
Code (Text):
buildwand:
Wand-Type: 'BUILD_WAND'
Material: 'DIAMOND_HOE'
Data: 0
Name: '&6&lBuild Wand'
Lore:
- '&7Right click a block to build a structure'
- ''
- '&6&lInformation:'
- '&7Uses: &b{uses}'
- '&7Size: &b49'
- '&7Range: &b7'
- ''
- '&6&lStat Trak'
- '&7Structure Built: &b{structure_built}'
- '&7Block Placed: &b{block_placed}'
#The multipllier for the build is used for the amount of build blocks the wand can place.
Size: 49
Range: 7
#Add this permission here and this wand can only be used by people by this permission
Permission: 'build.wand.use'
# Material : Item data : Price the list goes like that make sure to have no spaces
item-sell-prices:
- 'STONE:0:8.1'
- 'GRASS:0:2.2'
- 'DIRT:0:1.5'
- 'COBBLESTONE:0:7.7'
- 'INK_SACK:4:10.2' #This will make lapis be sold
Messages:
Prefix: '&8[&6Sellwand&8] '
# {target} - will be replaced by targets name
SenderGiveMessage: '&7You gave &f{target} &7a sellwand'
TargetGiveMessage: '&7You have been give a sellwand'
# {money} - This shows the amount you made without the multiplier
# {extra} - This shows how much extra you made with your sellwand multiplier
# {totalamount} - this shows the total amount you made with the sellwand multiplier
SellMessage: '&7You have sold items for &a${money} &7and got &a${extra} &7extra from your sellwand'
DestoryMessage: '&cYour sellwand broke'
NotAllowed: '&cYou are not allowed to use the sellwand here!'
NothingSellable: '&cNothing sellable in the chest'
WandNotExist: '&f{wand} &7does not exist'
PlayerNotFound: '&f{target} &7not found on the server'
ReloadMessage: '&7You have reload the config file'
NotAllowedToUse: '&cYou are not allowed to use this sellwand'
Usage: '&c/sellwands give <target> <wandname>'
NothingConverted: '&c&lNothing to convert'
#Types
#Sell - Will sell all items in the chest
#Condense - Will convert all items into blocks in the chest
SellWands:
wand1: #The name of the item (used in the give command)
item: STICK #Must be a valid material
data: 0 #Used for further material data
Type: 'SELL' #You can have two types Sell and condense
multiplier: 1.5 #The amount that this wand multiplies by
name: "&eSell Wand &7(&a&lmultiplier 1.5&7)" #Items name
# {usage} - This will be replaced by the uses
# {moneymade} - This will show how much your sellwand has made
lore: #Lore of the item
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true #Whether you want the item to have a glow
uses: 100 #Chose how many uses should the sellwand have. set it to 0 if you want infinite
InfiniteLore: 'Infinite' #This will show in the lore if you set the uses to 0
Permission: 'none' #You can have a permission to allow certain players to use a sellwand disable this by typing none
wand2:
item: STICK
data: 0
Type: 'SELL'
multiplier: 1.75
name: "&eSell Wand &7(&a&lmultiplier 1.75&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 25
InfiniteLore: 'Infinite'
Permission: 'wand2.use'
wand3:
item: STICK
data: 0 #Used for further material data
Type: 'SELL'
multiplier: 2.0
name: "&eSell Wand &7(&a&lmultiplier 2.0&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 10
InfiniteLore: 'Infinite'
Permission: 'wand3.use'
wand4:
item: STICK
data: 0 #Used for further material data
Type: 'SELL'
multiplier: 2.0
name: "&eSell Wand &7(&a&lmultiplier 2.0&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 0
InfiniteLore: 'Infinite'
Permission: 'wand3.use'
wand5:
item: STICK
data: 0 #Used for further material data
Type: 'CONDENSE'
name: "&eCondense Wand"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Item converted: &f{converted}"
setGlow: true
uses: 100
InfiniteLore: 'Infinite'
Permission: 'none'
Removed Useline in the config file
Made the config file way better
Added a moneyMade placeholder to show how much money your sellwand made
Added a permission to use a specific sellwand to make certain ranks use a sellwand you can disable it
Added Essentiels sell prices
Added sounds.
Made the code a lot better
You can now reload the config file and wands no need to restart all the time
# Material : Item data : Price the list goes like that make sure to have no spaces
item-sell-prices:
- 'STONE:0:8.1'
- 'GRASS:0:2.2'
- 'DIRT:0:1.5'
- 'COBBLESTONE:0:7.7'
- 'INK_SACK:4:10.2' #This will make lapis be sold
Messages:
Prefix: '&8[&6Sellwand&8] '
# {target} - will be replaced by targets name
SenderGiveMessage: '&7You gave &f{target} &7a sellwand'
TargetGiveMessage: '&7You have been give a sellwand'
# {money} - This shows the amount you made without the multiplier
# {extra} - This shows how much extra you made with your sellwand multiplier
# {totalamount} - this shows the total amount you made with the sellwand multiplier
SellMessage: '&7You have sold items for &a${money} &7and got &a${extra} &7extra from your sellwand'
DestoryMessage: '&cYour sellwand broke'
NotAllowed: '&cYou are not allowed to use the sellwand here!'
NothingSellable: '&cNothing sellable in the chest'
WandNotExist: '&f{wand} &7does not exist'
PlayerNotFound: '&f{target} &7not found on the server'
ReloadMessage: '&7You have reload the config file'
NotAllowedToUse: '&cYou are not allowed to use this sellwand'
Usage: '&c/sellwands give <target> <wandname>'
SellWands:
wand1: #The name of the item (used in the give command)
item: STICK #Must be a valid material
data: 0 #Used for further material data
multiplier: 1.5 #The amount that this wand multiplies by
name: "&eSell Wand &7(&a&lmultiplier 1.5&7)" #Items name
# {usage} - This will be replaced by the uses
# {moneymade} - This will show how much your sellwand has made
lore: #Lore of the item
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true #Whether you want the item to have a glow
uses: 100 #Chose how many uses should the sellwand have. set it to 0 if you want infinite
InfiniteLore: 'Infinite' #This will show in the lore if you set the uses to 0
Permission: 'none' #You can have a permission to allow certain players to use a sellwand disable this by typing none
wand2:
item: STICK
data: 0
multiplier: 1.75
name: "&eSell Wand &7(&a&lmultiplier 1.75&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 25
InfiniteLore: 'Infinite'
Permission: 'wand2.use'
wand3:
item: STICK
data: 0 #Used for further material data
multiplier: 2.0
name: "&eSell Wand &7(&a&lmultiplier 2.0&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 10
InfiniteLore: 'Infinite'
Permission: 'wand3.use'
wand4:
item: STICK
data: 0 #Used for further material data
multiplier: 2.0
name: "&eSell Wand &7(&a&lmultiplier 2.0&7)"
lore:
- "&7Right click a chest to sell it contens"
- "&7Uses: &f{usage}"
- "&7Moneymade: &a${moneymade}"
setGlow: true
uses: 0
InfiniteLore: 'Infinite'
Permission: 'wand3.use'
Made a new and improved sell list where you can sell all items now
Add this to your config file:
Code (Text):
# Material : ItemId : Price the list goes like that make sure to have no spaces
item-sell-prices:
- 'STONE:0:8.1'
- 'GRASS:0:2.2'
- 'DIRT:0:1.5'
- 'COBBLESTONE:0:7.7'
- 'INK_SACK:4:10.2' #This will make lapis be sold