Config help! Item enchantment:level

Discussion in 'Plugin Development' started by pablo67340, Feb 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    pablo67340

    Hi, i am trying to make a config for a vote shop, and in the config i would like to do the following:

    slot1:
    item: DIAMOND_SWORD durabilty:5 sharpness:5

    How would i approach this? I've been looking in essentials github because i know their config is layed out like this for kits, But it cannot find it in the immense size git. Any help is appreciated
     
  2. Offline

    Vandrake

    you'd need to store it in a type of custom item

    ItemToGive1:
    Type: DIAMOND_SWORD
    Durability: 5
    Enchants:
    Sharpness%5

    and when loading you need to load all that, splitting the last string between enchant name and lvl
    Also for the dur you need to get the maximum durab and subtract 5
     
Thread Status:
Not open for further replies.

Share This Page