Kits Config v5.0 and v5.1
Description
kits.yml (created on first start)
onetimekit: items: - 276,1 32,1 33,2 - 14,20 - 373:8225,2 commands: - say That triggered a say command - tell (player) Hi, I am the console. givemoney: 20 givexp: 50 starter: false onetime: true clearinv: false cooldown: 0 price: 0 message: Enjoy it ;)
How to make kits
Kits are defined in this format:
[kitname]: items: - [item id],[amount] [enchant id],[level] [enchant id],[level], ... commands: - [your commands string here - no "/" required] givemoney: [any floating-point number] givexp: [any integer] starter: [false of true] onetime: [false or true] clearinv: [false or true] cooldown: [cooldown in seconds] price: [your price as floating-point number] message: [strings]
IMPORTANT: The kits config is using Bukkit's yaml parser. That means you can't use TAB indentation and you have to use spaces (see example).
Also if you don't set an attribute, it will use its default value.
Available config attributes
attribute | description | possible | default |
---|---|---|---|
items | This is where you put all your items in. See example above. | item ids | none |
commands | Here you can list commands which are being executed after requesting a kit. (player) represents the name of the player who is getting the kit. See example above. | strings | none |
givemoney | Give money to the user who is requesting the kit (requires Vault + Economy plugin). | any floating-point number | 0.0 |
givexp | Give experience points to the kit requester. | any integer | 0 |
starter | Set this to true if you want to give your players a starterkit on their first join. Onetime will be ignored if this is set to true. | true or false | false |
onetime | Set this to true if you want to make the kit usable once by every player. Cooldown will be ignored if this is set to true. | true or false | false |
cooldown | If onetime and starter is false, you can set a cooldown (in seconds) here if you want. | any integer | 0 |
clearinv | Set this to true if you want the player's inventory to be cleared out before sending the kit. | true or false | false |
price | If you got Vault + Economy plugin installed, you can set a price here. | any floating-point number | 0.0 |
message | Here you can specify a custom message for this kit. The default message from config.yml will be used if you leave that empty or remove the "message:" field. | any string | nothing |
Enchantmemt IDs
ID | Enchant |
---|---|
0 | Protection |
1 | Fire Protection |
2 | Feather Falling |
3 | Blast Protection |
4 | Projectile Protection |
5 | Respiration |
6 | Aqua Affinity |
7 | Thorns |
16 | Sharpness |
17 | Smite |
18 | Bane Of Arthropods |
19 | Knockback |
20 | Fire Aspect |
21 | Looting |
32 | Efficiency |
33 | Silk Touch |
34 | Unbreaking |
35 | Fortune |
48 | Power |
49 | Punch |
50 | Flame |
51 | Infinity |