plugin.yml

Discussion in 'Plugin Development' started by baseball23, Aug 1, 2014.

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

    baseball23

    I am currently making a plugin where players with a permission can use explosive eggs and it is all working fine expect when I try to load it into my server. I get an error invalid plugin.yml. Does anyone have a solution. Plugin.yml is below if you need class files just ask.



    name: TpEggBomb
    version: 1.1.0
    main: me.bukkit.TpEggBombJava7.Main
    author: 3brandon3
    commands:
    eggtoggle:
    description: turns TpEggBomb on and off
    permission: egg.bomb.toggle
    eggbomb:
    description: tells players if eggbomb is enabled!
    permission: egg.bomb.tell
    permissions:
    egg.bomb.toggle
    description: Allows owners and admin to disable TpEggBomb
    default: op
    egg.bomb.use
    description: Allows players to use eggbomb
    default: op
    egg.bomb.teleport
    description: allows players to teleport with a golden hoe!
    default: op
    egg.bomb.tell
    description:
    default: true
     
  2. baseball23 Hard to check due to the fact that there are no spaces. If you told us the list of commands, it would have been a LOT easier. Here's what I 'tried' to do, it may not be 100% correct.

    Code:
    name: TpEggBomb
    version: 1.1.0
    main: me.bukkit.TpEggBombJava7.Main
    author: 3brandon3
    commands:
      eggtoggle:
        description: turns TpEggBomb on and off
        permission: egg.bomb.toggle
      eggbomb:
        description: tells players if eggbomb is enabled!
        permission: egg.bomb.tell
      egg.bomb.toggle:
        description: Allows owners and admin to disable TpEggBomb
        default: op
      egg.bomb.use:
        description: Allows players to use eggbomb
        default: op
      egg.bomb.teleport:
        description: allows players to teleport with a golden hoe!
        default: op
      egg.bomb.tell:
        description:
        default: true
     
  3. Offline

    Totom3

    DJSkepter "egg.bomb.use", "egg.bomb.teleport" and "egg.bomb.tell" are supposed to be in the permissions node.
     
  4. Offline

    moe097

    Totom3
    Make sure you don't use tabs in this file, or in any YAML file. Only use spaces.

    If you are using notpad++ do this:
    http://ess.khhq.net/wiki/YAML_Tutorial

    If you are not using notepad++, you should download it.

    Hope this helped
     
  5. Offline

    Totom3

    moe097 His username is spelled "baseball23", not "Totom3"
     
  6. Offline

    moe097

    Totom3 likes this.
  7. Offline

    fireblast709

  8. Offline

    moe097

    fireblast709

    I forgot that you could use the IDE for that. I usually don't use my IDE for my yaml files.
     
  9. Offline

    patey

    @baseball23is your plugin.yml in the right place? in my first plugin I did that, drove me nuts for days
     
Thread Status:
Not open for further replies.

Share This Page