Invalid plugin.yml

Discussion in 'Plugin Development' started by crafto22, Mar 15, 2013.

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

    crafto22

    Hey! Im having a problem with my plugin! Everytime i run bukkit, i get a [SEVERE] message and it says i have a "invalid plugin.yml" and it says it was caused by while scanning for the next token found character '/t'. That cannot start any token in <reader> line 5 column 1" Does anyone know what this means? Heres my plugin.yml:

    name: CommandsPlugin
    main: me.crafto22.commands.Commands
    version: 1.0
    description: Commands Plugin!
    commands:
    special:
    description: Something special!
    materials:
    description: Gives you some handy materials
    goto:
    description: Teleports you to a player. Usage: /goto [player_name] or /goto [player_name] [player_name]
     
  2. Offline

    chasechocolate

    Maybe put single quotes (') around your description for the goto command? Sometimes the "/" and "[]" can mess up YML syntax. Also, might want to indent it correctly, try this:
    Code:
    name: CommandsPlugin
    main: me.crafto22.commands.Commands
    version: 1.0
    description: Commands Plugin!
    commands:
      special:
        description: Something special!
      materials:
        description: Gives you some handy materials
      goto:
        description: 'Teleports you to a player. Usage: /goto [player_name] or /goto [player_name] [player_name]'
     
  3. Offline

    thebiologist13

    I believe the "\t" character is a tab character. YAML cannot read tabs, so you have to replace them with spaces (usually 4). So just make sure you have replaced all the tabs you have with spaces, then paste the contents of the file in here: http://yaml-online-parser.appspot.com/ to make sure you aren't getting errors.

    I hope I could help!
    ~thebiologist13
     
  4. Offline

    crafto22

    Hey guys! I rewrote my plugin and it still gives me the same error! Heres what my new written version of the plugin.yml looks like! What's wrong with it?

    name: CommandsPlugin
    main: me.crafto22.commands.Commands
    version: 1.0
    description: Commands Plugin!
    commands:
    special:
    description: Something special!
    materials:
    description: Gives you some handy materials
    goto:
    description: 'Teleports you to a player. Usage: /goto [player_name] or /goto [player_name] [player_name]'

    Sorry this is what it now looks like:

    Code:
    name: CommandsPlugin
    main: me.crafto22.commands.Commands
    version: 1.0
    description: Commands Plugin!
    commands:
        special:
            description: Something special!
        materials:
            description: Gives you some handy materials
        goto:
            description: 'Teleports you to a player. Usage: /goto [player_name] or /goto [player_name] [player_name]'
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
Thread Status:
Not open for further replies.

Share This Page