Unable/Struggling to get kits working

Discussion in 'Bukkit Help' started by MouldyGoldie, Oct 31, 2014.

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

    MouldyGoldie

    Hi! I'm currently struggling to get the kits working on my essentials config. It either says that their are no available kits (ingame) or just defaults to the standard kits (tools, dtools, etc.) In my server files a file called config.yml.broken is being created. Halp pls.

    Pastebin : http://pastebin.com/aCG9BrRb
     
  2. Offline

    AGC-Intra

    Your YAML file (config.yml) is broken/not properly configured.

    Your essentials config file is a YAML file and MUST always maintain a YAML format.
    That means the spacing in the file must be exactly a certain way.
    You cannot use TAB or extra spaces in that file or it will be seen as wrong/corrupt.
    If you are unsure what all this means then a basic tutorial on YAML files should be read.
    Check out the Essentials YAML Tutorial.
     
  3. Offline

    MouldyGoldie

    But what did I do wrong? I feel like all formatting is correct...
     
  4. Offline

    JaguarJo

    This is how your first kit looks:
    Code:
    kits:
      pvp:
        delay: 900
        items:
              - 376 1 name:PvP_Sword sharpness:4 fireaspect:1
              - 322:1 64 name:God_Apples
          - 310 8 name:PvP_Helmet protection:5 unbreaking:5
          - 311 8 name:PvP_Chestplate protection:5 unbreaking:5
          - 312 8 name:PvP_Leggings protection:5 unbreaking:5
          - 312 8 name:PvP_Boots protection:5 unbreaking:5
              - 373:8201 name:OP_Strength effect:strength power:2 duration:240
              - 373:8194 name:OP_Speed effect:speed power:2 duration:240
    This is how it should look instead:
    Code:
    kits:
      pvp:
        delay: 900
        items:
          - 376 1 name:PvP_Sword sharpness:4 fireaspect:1
          - 322:1 64 name:God_Apples
          - 310 8 name:PvP_Helmet protection:5 unbreaking:5
          - 311 8 name:PvP_Chestplate protection:5 unbreaking:5
          - 312 8 name:PvP_Leggings protection:5 unbreaking:5
          - 312 8 name:PvP_Boots protection:5 unbreaking:5
          - 373:8201 name:OP_Strength effect:strength power:2 duration:240
          - 373:8194 name:OP_Speed effect:speed power:2 duration:240
    Your items all need to line up and you absolutely cannot ever use the tab key when you edit this file.

    If you use a program like Notepad++ for editing, then you may be getting tabs added without realizing it. You can change Notepad's settings so that it converts tabs to spaces and then you won't have to worry about them getting added in there by default.

    Another useful tool is an online YAML parser. Pasting your file into this when you think you're done with it will tell you whether or not you have errors. The error message for having a tab in your file looks like this: "found character '\t' that cannot start any token" and then it will tell you what line it is on.
     
    AGC-Intra likes this.
  5. Offline

    AGC-Intra


    JaguarJo rocks and broke it down for you above.

    See I put the link to the Essentials YAML Tutorial for good reason.
    Like most though it seems you never bothered to give it a look.
    If you had you wouldn't be saying 'I feel like all formatting is correct...'.
    You would have learned that it was not.
     
    JaguarJo likes this.
Thread Status:
Not open for further replies.

Share This Page