Could not load plugin, mapping error

Discussion in 'Plugin Development' started by illidan432, Apr 16, 2013.

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

    illidan432

    When I try to run a plugin called Ballistics this is what happens:
    Show Spoiler

    2013-04-16 16:52:59 [SEVERE] Could not load 'plugins\BallisticsV1.2.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:257)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
    at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.v1_5_R2.CraftServer.<init>(CraftServer.java:217)
    at net.minecraft.server.v1_5_R2.PlayerList.<init>(PlayerList.java:55)
    at net.minecraft.server.v1_5_R2.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:379)
    at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
    Caused by: mapping values are not allowed here
    in "<reader>", line 8, column 17:
    description: Root command for ballistics.
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733)
    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
    at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:411)
    at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:42)
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252)
    ... 8 more
     
  2. Offline

    C0nsole

    This looks like a problem in the code. Contact the developer.
     
  3. Offline

    illidan432

    Alright. Also it points to the colons in Ballistics: and Description: Here is the plugin.yml in case it helps:
    name: Ballistics
    main: me.waternode.ballistics.Ballistics
    description: Adds ballistics to the game.
    version: 1.2
    author: WaterNode

    ballistics:
    description: Root command for ballistics.

    permissions:
    ballistics.*:
    description: Gives access to all Ballistics features.
    children:
    ballistics.cannon: true
    ballistics.flamethrower: true
    ballistics.bb: true
    ballistics.firecannon: true
    ballistics.bettercannons: true
    ballistics.admin: true

    The indents wont work it seems
     
  4. Offline

    C0nsole

    illidan432
    This is all wrong, please use pastebin so we can get an idea of the spacing. Also, this is in the wrong section. Reported.
     
  5. Offline

    illidan432

  6. Offline

    C0nsole

  7. Offline

    illidan432

    Oh okay sorry I'm new here.
    Thanks for the help. It loads up although there is no folder for the plugin and I can't find out how to get any of the weapons.
    I'll contact the developer though.
     
  8. Offline

    resba

    Moved to Plugin Development
     
Thread Status:
Not open for further replies.

Share This Page