Configuration

Configuration

For those who don't know, the configuration file is located under /plugins/ToolBox/config.yml

This is the structure your config.yml should have (I replaced any number by x):

economy-disabled: 'true/false'
uf:
  tools: x,x,x,...
  buy: x
  use: x
hammer:
  tools: x,x,x,...
  buy: x
  use: x
  maxradius: x
lb:
  tools: x,x,x,...
  buy: x
  use: x
invpick:
  buy: x
  use: x
repair:
  use: x

Attribute explanation

Blue values have to be integers, red values can be any number.

  • economy-disabled - true or false - Turn economy support on or off.
  • uf
    • tools - A comma-separated list of all tools (Item-ID) that are allowed to be used as Ultimate Fist. Use * to allow everything.
    • buy - The buy price for the Ultimate Fist.
    • use - The price for every use of the Ultimate Fist.
  • hammer
    • tools - A comma-separated list of all tools (Item-ID) that are allowed to be used as Gods Hammer. Use * to allow everything.
    • buy - The buy price for Gods Hammer.
    • use - The price for every use of Gods Hammer.
    • maxradius - The maximum radius players are allowed to use when using Gods Hammer.
  • lb
    • tools - A comma-separated list of all tools (Item-ID) that are allowed to be used as Leaf Blower. Use * to allow everything.
    • buy - The buy price for the Leaf Blower.
    • use - The price for every use of the Leaf Blower.
  • invpick
    • buy - The buy price for InvPick.
    • use - The price for every use of InvPick.
  • repair
    • use - The price for every damage point that gets repaired.

User groups

You can set special properties for special user groups.
E.g., you have a group called vip, and you want them to be able to use every item as Ultimate Fist while normal users can only use a diamond pickaxe.
The uf-part of your config.yml then would look like this:

uf:
  tools: 278
  buy: 10000
  use: 0
  vip:
    tools: *


You can do the same with every other setting.

Quote:

Note: For all the red values the lowest possible value will be taken, for all the blue values it's the highest possible value.

So if your hammer-part looks like this:

hammer:
  tools: 278
  buy: 10000
  use: 1
  maxradius: 5
  whatever:
    use: 5
    maxradius: 10


When a user with the usergroup whatever now uses Gods Hammer it will cost him 1 $ and NOT 5 $, because the use-attribute is a red value.
But he will be able to use a radius up to 10 for Gods Hammer, because the maxradius-attribute is a blue value.