YAML Parsing error need halp :(

Discussion in 'Plugin Help/Development/Requests' started by Rick221, Mar 26, 2015.

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

    Rick221

    ERROR LOG VVVV

    error log (open)
    Code:
     Could not load 'plugins\CustomWeapons.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:286) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.<init>(CraftServer.java:248) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.PlayerList.<init>(PlayerList.java:68) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:133) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:477) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at java.lang.Thread.run(Unknown Source) [?:1.7.0_67]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character     '\t' that cannot start any token
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:591) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:232) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:155) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        ... 8 more
    [07:11:38] [Server thread/ERROR]: Could not load 'plugins\GLStaffs.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:286) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.<init>(CraftServer.java:248) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.PlayerList.<init>(PlayerList.java:68) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:133) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:477) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at java.lang.Thread.run(Unknown Source) [?:1.7.0_67]
    Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping; expected <block end>, but found BlockMappingStart
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:575) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-6eb0c79]
        at org.yaml.snakeyaml.composer.Composer.compos


    Plugin yml (open)
    Code:
    name: CustomWeapons
    main: me.RickPow.CWMain
    version: 1.0
    commands:
      cweapon:
        usage: /<command>
        description: Custom Weapons
    permissions:
      cweapon.*:
        description: Gives access to all CustomWeapons commands
        children:
      cweapon.use.fgrenade: true
      cweapon.command.firegrenade: true
      cweapon.use.flashbang: true
      cweapon.command.flashbang: true
      cweapon.command.gigadrill: true
      cweapon.use.gigadrill: true
     
      cweapon.use.fgrenade:
        description: Allows use for firegrenade
        default: op
      cweapon.command.firegrenade:
        description: Allows you to do the command
        default: op
      cweapon.use.flashbang:
        description: Allows use for flashbang
        default: op
      cweapon.command.flashbang:
        description: Allows you to do the command
        default: op
      cweapon.command.gigadrill:
        description: Allows you to do the command
        default: op
      cweapon.use.gigadrill:
        description: Allows you to do the command
        default: op
       
    depends: [Factions,MassiveCore]


    Cant find out whats wrong please help me
     
  2. Offline

    SergeantBud

    From what I gather, you forgot the plugin desc.
    So the plugin.yml should be:
    Code:
    main: me.RickPow.CWMain
    version: 1.0
    description: <DESC>
    commands:
      cweapon:
        usage: /<command>
        description: Custom Weapons
    permissions:
      cweapon.*:
        description: Gives access to all CustomWeapons commands
        children:
      cweapon.use.fgrenade: true
      cweapon.command.firegrenade: true
      cweapon.use.flashbang: true
      cweapon.command.flashbang: true
      cweapon.command.gigadrill: true
      cweapon.use.gigadrill: true
    
      cweapon.use.fgrenade:
        description: Allows use for firegrenade
        default: op
      cweapon.command.firegrenade:
        description: Allows you to do the command
        default: op
      cweapon.use.flashbang:
        description: Allows use for flashbang
        default: op
      cweapon.command.flashbang:
        description: Allows you to do the command
        default: op
      cweapon.command.gigadrill:
        description: Allows you to do the command
        default: op
      cweapon.use.gigadrill:
        description: Allows you to do the command
        default: op
      
    depends: [Factions,MassiveCore]
    [/code]
     
  3. Offline

    mythbusterma

    @SergeantBud

    No.


    @Rick221

    Your issue is improper indentation. I can see at least one example of it in the children for the first node, there might be more.

    Indent properly.
     
  4. Offline

    SergeantBud

    Oh sorry .-.
     
  5. Offline

    mrCookieSlime

    Moved to Alternatives Section.
     
  6. Offline

    Rick221

    You guys didnt really help at all :/
     
  7. Offline

    nverdier

    @Rick221
     
  8. Offline

    Rick221

    @nverdier i have reindented the entire thing and it still comes up with the error

    @nverdier I literally copied and pasted bukkits preset yaml and just replaced it with my stuff and it still doesnt work ._.

    Code:
     name: CustomWeapons
    version: 1.5
    description: Custom weapons and items
    # We could place every author in the authors list, but chose not to for illustrative purposes
    # Also, having an author distinguishes that person as the project lead, and ensures their
    # name is displayed first
    author: RickPow
    main: me.RickPow.CWMain
    depend: [Factions, MassiveCore]
    commands:
       cweapon:
         description:
         usage: /<command>
      
    permissions:
       cweapon.*:
         description: Gives access to all Inferno commands
         children:
           cweapon.use.fgrenade: true
           cweapon.command.firegrenade: true
           cweapon.use.flashbang: true
           cweapon.command.flashbang: true
           cweapon.command.gigadrill: true
           cweapon.use.gigadrill: true
       cweapon.use.fgrenade:
         description:
         default: op
       cweapon.command.firegrenade:
         description:
         default: op
       cweapon.use.flashbang:
         description:
         default: op
       cweapon.command.flashbang:
         description:
         default: op
       cweapon.use.gigadrill:
         description:
         default: op
       cweapon.command.gigadrill:
         description:
         default: op
     
    Last edited by a moderator: Mar 26, 2015
  9. Offline

    nverdier

    @Rick221 Look at the indention of the first line.
     
Thread Status:
Not open for further replies.

Share This Page