Plugin Help essentials kits

Discussion in 'Plugin Help/Development/Requests' started by SwagiWagi, Dec 6, 2015.

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

    SwagiWagi

    hey,
    i want to make a custom potions in kits, when im typing /kit <kitname> it says that its improparly defined.

    Code:
    kits:
      villager:
        delay: 90
        items:
          - 268 1 name:&bSWooden_sword lore:&bVllager's_weapon!
          - 357 16
          - 298 1
          - 299 1
          - 300 1
          - 301 1
      steve:
        delay: 90
        items:
          - 268 1 sharpness:1 name:&eWooden_Sword lore:&eSteve's_weapon!
          - 357 16
          - 298 1
          - 303 1
          - 300 1
          - 305 1
      alex:
        delay: 90
        items:
          - 272 1 name:&2SStone_sword lore:&eAlex's_weapon!
          - 260 16
          - 302 1
          - 303 1
          - 304 1
          - 305 1 protection:1
      ghast:
        delay: 90
        items:
          - 276 1 sharpness:5 fireaspect:2 smite:1 power:1 name:&fDiamond_Sword lore:&fGhats_weapon!
          - 0 1
          - 373:16462 name:&fInvisibility_splash_potion lore:&fYou're_a_ghast!
          - 0 1
          - 373:16462 name:&fInvisibility_splash_potion lore:&fYou're_a_ghast!
      witch:
        delay: 90
        items:
          - 272 1 name:&dStone_sword lore:&dWitch_weapon!
          - potion 1 effect:invisibility duration:60 name:&dInvisibility_splash_potion lore:&dDisapear_now!
          - potion 1 effect:weakness duration:10 name:&dWeakness_splash_potion lore:&dBe_stronger!
          - potion 1 effect:nightvision duration: 600 name:&dNight_vision_potion lore:&dYou_dont_need_glasses_anymore!
    kits:
      villager:
        delay: 90
        items:
          - 268 1 name:&bSWooden_sword lore:&bVllager's_weapon!
          - 357 16
          - 298 1
          - 299 1
          - 300 1
          - 301 1
      steve:
        delay: 90
        items:
          - 268 1 sharpness:1 name:&eWooden_Sword lore:&eSteve's_weapon!
          - 357 16
          - 298 1
          - 303 1
          - 300 1
          - 305 1
      alex:
        delay: 90
        items:
          - 272 1 name:&2SStone_sword lore:&eAlex's_weapon!
          - 260 16
          - 302 1
          - 303 1
          - 304 1
          - 305 1 protection:1
      ghast:
        delay: 90
        items:
          - 276 1 sharpness:5 fireaspect:2 smite:1 power:1 name:&fDiamond_Sword lore:&fGhats_weapon!
          - 0 1
          - 373:16462 name:&fInvisibility_splash_potion lore:&fYou're_a_ghast!
          - 0 1
          - 373:16462 name:&fInvisibility_splash_potion lore:&fYou're_a_ghast!
      witch:
        delay: 90
        items:
          - 272 1 name:&dStone_sword lore:&dWitch_weapon!
          - potion 1 effect:invisibility duration:60 name:&dInvisibility_splash_potion lore:&dDisapear_now!
          - potion 1 effect:weakness duration:10 name:&dWeakness_splash_potion lore:&dBe_stronger!
          - potion 1 effect:nightvision duration: 600 name:&dNight_vision_potion lore:&dYou_dont_need_glasses_anymore!
    
    what am i doing wrong?
     
  2. Offline

    mrsagency

    Did you just repeat "kits:" two times in the config?

    I found the problem
    You have "escaped" all apostrophes in your text: If you want to write Steve's, for example, write Steve''s instead (write twice the single apostrophe, not using double apostrophe)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 7, 2015
  3. Offline

    olsyboy

    Listen to @mrsagency and remove the extra kit list xD
     
  4. Yeah, like @mrsagency , change the apostrophes in things like "Steve's Sword", to "Steve''s Sword". Yaml uses apostrophes to work out where things start and end, so it tantrums if there's some that don't mark either. Hope this helps :)
     
Thread Status:
Not open for further replies.

Share This Page