Warning: Declaration of action_plugin_tablewidth::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/tablewidth/action.php on line 0

Warning: Declaration of action_plugin_prettytables::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/prettytables/action.php on line 0

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/tablewidth/action.php:0) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/inc/auth.php on line 427

Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/tablewidth/action.php:0) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/inc/actions.php on line 38
Kit - Creating Kits - Pluginwiki

Warning: Declaration of syntax_plugin_color::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/color/syntax.php on line 0

Warning: Declaration of syntax_plugin_color::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /var/www/vhosts/hosting125175.a2fe2.netcup.net/sites/rcraft_eu/pluginwiki/lib/plugins/color/syntax.php on line 0

Kit - Creating Kits

kits.yml (created on first start)


Extended example:

mykitname:
  items:
    examplesword:
      id: DIAMOND_SWORD
      data: 0
      amount: 1
      enchantments:
      - DAMAGE_ARTHROPODS,2
      - KNOCKBACK,1
      - FIRE_ASPECT,1
      lore:
      - '&0This makes a colored text'
      - '&1This is colored too'
      - 'This is uncolored'
      - 'Recipient its name is (player)'
      name: '&1(player)''s Swordname'
      slot: inventory
      unbreakable: true
    orangewool:
      id: WOOL
      data: 1
      amount: 10
      slot: inventory
    magentawool:
      id: WOOL
      data: 2
      amount: 10
      slot: inventory
    myhelmet:
      id: LEATHER_HELMET
      amount: 1
      slot: helmet
      color: 51 255 204
  commands:
  - say That triggered a say command
  - tell (player) Hi, I am the console.
  removeeffects: true
  effects:
  - FIRE_RESISTANCE,10,2
  - FAST_DIGGING,10,1
  givemoney: 20
  givexp: 50
  givelevels: 10
  usages: 0
  clearinv: true
  cleararmor: true
  cooldown: 10
  price: 0
  message: '&1Enjoy it ;)'
#Books are only available in version 7.3 or higher!
  books:
    starterbook:
      title: '&eStarterbook'
      author: '&d&orecon'
      page:
        1: "&cThis is a colored text displayed on the first page"
        2: "Awesome second page content!"


Simple example:

simpletkitname:
  items:
    coloredwool:
      id: WOOL
      data: 3
      amount: 10
      slot: inventory
    helmetlether:
      id: LEATHER_HELMETET
      amount: 1
      slot: helmet
  cooldown: 10
  message: '&1Enjoy it ;)'


How to make kits

Kits are defined in this format:

[kitname]:
  items:
    [identifier - any string]
      id: [exact item name - see below for info]
      data: [data value - for wool/potions/etc]
      amount: [any integer]
      color: [any rgb color]
      enchantments:
      - [exact enchant name - see below for info, Level]
      lore:
      - '[any string]'
      name:
      - '[any string]'
      slot: [helmet, chestplate, leggings, boots, inventory]
  commands:
  - [your commands string here - no "/" required]
  removeeffects: [true or false]
  effects:
  - [exact effect name - see below for info, Duration(seconds), strength]
  givemoney: [any floating-point number]
  givexp: [any integer]
  givelevels: [any integer]
  usages: [-2, -1, 0, 1 or more]
  clearinv: [true or false]
  clearamor: [true or false]
  cooldown: [cooldown in seconds]
  price: [price as floating-point number]
  message: '[any string]'
  books:
    [indentifier - any string]
      title: [any string]
      author: [any string]
      pages:
        1: [any string]
        2: [any string]
        #You can define as many pages as you want here. Just keep incresing the numbers.


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 and/or just ignores it.
Make sure that you don't use IDs (numbers) for Items, Enchantmens and Status Effects. Only use exact names! SEE BELOW!

Exact Item/Enchant/Effect Names

Why names? IDs will be removed from minecraft in the future. Probably in MC1.8.
If you are using KitPlugin v7.0 or higher, you have to use the item names.
A full list of all names can be found in your KitPlugin folder! There are 3 files.


Available config attributes

attributedescriptionpossibledefault
itemsThis is where you put all your items IDs in (surrounded by ' '). See example above.item idsnone
identifierThis is a string you have to put right above every item section. That allows you to use the same item ID multiple times.any stringnone
idPut in the exact item NAME (not ID) here (data value belongs to data - for wool/potions/etc) See below the table.any item name0
dataThis can be used for data values (e.g. wool, potions, etc)any data id0
amountThe amount of the itemany integer0
unbreakableMakes the item unbreakable if set to truetrue/falsefalse
colorOnly works for leather armor. Requires a RGB color String. Scroll down for detailed explanation.any rgb colornone
enchantmentsDefine the enchantments for the item here. Format: exact name,Levelany enchant namenone
loreHere you can set an item desciption (colors supported - see below). Has to be surrounded with ' 'any stringnone
nameDefine an item name here if you want.any stringnone
slotHere you can define the slot for the item (helmet,chestplate,leggings,boots,inventory)see descriptioninventory
commandsHere 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.Note: This are console commands! Players don't need the permissions for the commands.stringsnone
removeeffectsIf true, this removes all effects on the player when requesting the kittrue or false
effectsPotion effects that are directly applied to the player. Format: exact name,Duration,Strengthany effect name
givemoneyGive money to the user who is requesting the kit (requires Vault + Economy plugin).any floating-point number0.0
givexpGive experience points to the kit requester.any integer0
givelevelsGive full experience levels to the kit requester.any integer0
usagesDefines how often a player can request this kit. -2 = deathkit; -1 = starterkit; 0 = infinite; 1 = only once; 2 or higher = limited to the given number -2, -1, 0, 1 or higher0
cooldownHere you can set a cooldown (in seconds) if you want.any integer0
clearinvSet this to true if you want the player's inventory to be cleared out before sending the kit.true or falsefalse
cleararmorSet this to true if you want the player's armor to be cleared out before sending the kit.true or falsefalse
priceIf you got Vault + Economy plugin installed, you can set a price here.any floating-point number
messageHere 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. Colors are possible: See color codes. Has to be surrounded with ' 'any stringnothing
booksThis is wher you put all your booksnone
books - indetifierThis is a string you have to put right above every book section. It's just for internal usage.any stringnone
books - titleThe title/displayname of the book. With color support.any stringnone
books - authorThe author of the book. With color support.any stringnone
books - pages - numberYou can define as many pages as you want hereany numbernone
books - pages - number - stringSet the page content here. With color Supportany stringnone



Color IDs

IDColor
&0Black
&1Dark Blue
&2Dark Green
&3Dark Aqua
&4Dark Red
&5Dark Purple
&6Gold
&7Gray
&8Dark Gray
&9Blue
&aGreen
&bAqua
&cRed
&dLight Purple
&eYellow
&fWhite
&kMagic/Obfuscated
&lBold
&mStrikethrough
&nUnderline
&oItalic
&rReset Color


Armor Colors

QR Code
QR Code Kit - Creating Kits (generated for current page)