What is wrong with my plugin.yml?

Discussion in 'Plugin Development' started by Veritas, Jan 6, 2015.

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

    Veritas

    This is my plugin.yml
    Code:
    name: Invincible
      version: 0.1
      description: You can become Invincible and Human
      main: me.Veritas.Main
    
    
      commands:
        Invincible
          description: Gives you every good potion effect
          usage: Syntax error type /Invincible to become Invincible.
        Human
          description: Sets you on fire and makes you human
          usage: Syntax error type /Human to become one
    I've already tried fixing but this was as much as I could fix it until I got stuck. So what am I doing wrong. Here is my console log http://pastebin.com/0CBpCban

    Edit: When I put it in YAML Parser I get this error

    ERROR:

    mapping values are not allowed here
    in "<unicode string>", line 10, column 18:
    description: Gives you every good potion effect
    ^
     
  2. Offline

    nverdier

    @Veritas You can't have all of the indentations that you have. You also have to have an ':' after the command. And lowercase the commands. It should be
    Code:
    name: Invincible
    version: 0.1
    description: You can become Invincible and Human
    main: me.Veritas.Main
    commands:
      invincible:
        description: Gives you every good potion effect.
        usage: Syntax error type /Invincible to become Invincible.
      human:
        description: Sets you on fire and makes you human
        usage: Syntax error type /Human to become one.
     
  3. Offline

    Veritas

    @nverdier *facepalm* It wasn't even a hard mistake It was just flat out stupid...and I didn't realize you can't have any spaces when going from Plugin information to commands to permissions
     
Thread Status:
Not open for further replies.

Share This Page