Server says error with plugin.yml

Discussion in 'Plugin Development' started by MinecraftMart, Mar 25, 2014.

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

    MinecraftMart

    My server wont load the plugin.yml because it says it got an error.
    I dont know were or how since it all looks fine to me.

    Here is my code
    Problem in lowers post. Its a new prblem. But same error log
    Error
    Code:
    [10:36:42 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.
    3-b3020jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.3)
    [10:36:42 ERROR]: Could not load 'plugins\WizardsTheBest-0.0.1-SNAPSHOT.jar' in
    folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:186) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.ja
    va:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:31
    2) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [c
    raftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14
    ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.jav
    a:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the n
    ext token; found character      '\t' that cannot start any token
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:358) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:17
    9) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(P
    arserImpl.java:591) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161) ~
    [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
    ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:133) ~
    [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :237) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160) ~
    [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    3) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
    ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:121) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480) ~[craftbukkit.j
    ar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:411) ~[craftbukkit.jar:git-Buk
    kit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.
    java:188) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:181) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            ... 8 more
    Pls help :)
     
  2. Offline

    willy00

    Code:
    name: WizardsTheBest
    main: com.outlook.mcpkmart.wizardsthebest.WizardsTheBest
    version: 0.1
    commands:
        wizardregen:
            description: This gives you regen
            usage: /wizardregen
            permission: wizard.regen
            permission-message: You Aint a Wizard!
        wizardhaste:
            description: This gives you haste
            usage: /wizardhaste
            permission: wizard.haste
            permission-message: You Aint a Wizard!
    permissions:
        wizard.*:
            description: Gives access to all effects
            children:
                wizard.regen: true
                wizard.haste: true
        wizard.regen:
            description: Allows you to use regen effect
            default: op
        wizard.haste:
            description: Allows you to use haste effect
            default: op
    just added the right amount of spaces on a few lines...
     
  3. Offline

    MinecraftMart

    willy00 Okay thx... I dont know why it didnt work before since its exactly the same but still thx.
     
  4. Offline

    willy00

    you didnt have enough spaces on some lines, such as this one:
    Code:
    description: This gives you regen
     
  5. willy00 MinecraftMart Actually the number of spaces doesn't matter technically, they just have to be parallel. I'd say that this line tells you all you need to know:
    Code:
    Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character '\t' that cannot start any token
    In other words, you had a tab character somewhere in your original.
     
    willy00 likes this.
  6. Offline

    MinecraftMart

    willy00 Thats the weird thing. They were all lined up right? Wll it works now so i am happy :D

    Edit: oow th description and default
     
  7. Offline

    willy00

    oh ok. thanks. you learn something every day....
     
    AdamQpzm likes this.
  8. Offline

    MinecraftMart

    Its doing th same thing again but now i really cant find the problem

    Code:
    name: WizardsTheBest
    main: com.outlook.mcpkmart.wizardsthebest.WizardsTheBest
    version: 0.1
    commands:
        wizardregen:
            description: This gives you regen!
            usage: /wizardregen
            permission: wizard.regen
            permission-message: You Aint a Wizard!
        wizardhaste:
            description: This gives you haste!
            usage: /wizardhaste
            permission: wizard.haste
            permission-message: You Aint a Wizard!
        wizardspeed:
            description: This gives you speed!
            usage: /wizardspeed
            permission: wizard.speed
            permission-message: You Aint a Wizard!
        wizarddamage:
            description: This gives you extra damage!
            usage: /wizarddamage
            permission: wizard.damage
            permission-message: You Aint a Wizard!
        wizardjump:
            description: This gives you higher jump!
            usage: /wizardjump
            permission: wizard.jump
            permission-message: You Aint a Wizard!
        wizardresistance:
            description: This gives you resistance!
            usage: /wizardresistance
            permission: wizard.resistance
            permission-message: You Aint a Wizard!
        wizardabsorption:
            description: This gives you more hearts!
            usage: /wizardabsorption
            permission: wizard.absorption
            permission-message: You Aint a Wizard!
        wizardfireres:
            description: This gives fire resistance!
            usage: /wizardfireres
            permission: wizard.fireres
            permission-message: You Aint a Wizard!
        wizardinvisibility:
            description: This gives fire invisibility!
            usage: /wizardinvisibility
            permission: wizard.invisibility
            permission-message: You Aint a Wizard!
    permissions:
        wizard.*:
            description: Gives access to all effects!
            children:
                wizard.regen: true
                wizard.haste: true
                wizard.speed: true
                wizard.damage: true
                wizard.jump: true
                wizard.resistance: true
                wizard.absorption: true
                wizard.fireres: true
                wizard.invisibility: true
        wizard.regen:
            description: Allows you to use the regen effect!
            default: op
        wizard.haste:
            description: Allows you to use the haste effect!
            default: op
        wizard.speed:
            description: Allows you to use the speed effect!
            default: op
        wizard.damage:
            description: Allows you to use the damage effect!
            default: op
        wizard.jump:
            description: Allows you to use the damage effect!
            default: op
        wizard.resistance:
            description: Allows you to use the resistance effect!
            default: op
        wizard.absorption:
            description: Allows you to get two more hearts!
            default: op
        wizard.fireres:
            description: Allows you to get fire resistence!
            default: op
        wizard.invisibility:
            description: Allows you to get fire invisibility!
            default: op                    
    Same Error
     
  9. Offline

    Sagacious_Zed Bukkit Docs

    MinecraftMart If the server is giving you a stack trace you should read all of it. It will give you important information about what is wrong, and where the JVM encountered it.
     
  10. Offline

    MinecraftMart

  11. Offline

    Sagacious_Zed Bukkit Docs

    If it is the same exact error, then you have the same exact problem. The parser encountered a \t (tab character) in your yaml file.
     
  12. Offline

    MinecraftMart

    Sagacious_Zed Thats the problem. I already tabbed evertything right. Still not working
     
  13. Offline

    Sagacious_Zed Bukkit Docs

    The parser read a tab character, so logically it follows that the file it is reading has a tab. If you did change the file, make sure that you remember to update the jar of your plugin on the server.
     
  14. MinecraftMart You "tabbed" everything right? That makes no sense since there should be absolutely no tabs at all. Unless that's what you mean.
     
  15. Offline

    MinecraftMart

    Sagacious_Zed I did still the same

    AdamQpzm I mean that very line has the right tab characters.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  16. Offline

    MinecraftMart

    AdamQpzm
    Code:
    name: WizardsTheBest
    main: com.outlook.mcpkmart.wizardsthebest.WizardsTheBest
    version: 0.1
    commands:
        wizardregen:
            description: This gives you regen!
            usage: /wizardregen
            permission: wizard.regen
            permission-message: You Aint a Wizard!
        wizardhaste:
            description: This gives you haste!
            usage: /wizardhaste
            permission: wizard.haste
            permission-message: You Aint a Wizard!
        wizardspeed:
            description: This gives you speed!
            usage: /wizardspeed
            permission: wizard.speed
            permission-message: You Aint a Wizard!
        wizarddamage:
            description: This gives you extra damage!
            usage: /wizarddamage
            permission: wizard.damage
            permission-message: You Aint a Wizard!
        wizardjump:
            description: This gives you higher jump!
            usage: /wizardjump
            permission: wizard.jump
            permission-message: You Aint a Wizard!
        wizardresistance:
            description: This gives you resistance!
            usage: /wizardresistance
            permission: wizard.resistance
            permission-message: You Aint a Wizard!
        wizardabsorption:
            description: This gives you more hearts!
            usage: /wizardabsorption
            permission: wizard.absorption
            permission-message: You Aint a Wizard!
        wizardfireres:
            description: This gives fire resistance!
            usage: /wizardfireres
            permission: wizard.fireres
            permission-message: You Aint a Wizard!
        wizardinvisibility:
            description: This gives fire invisibility!
            usage: /wizardinvisibility
            permission: wizard.invisibility
            permission-message: You Aint a Wizard!
    permissions:
        wizard.*:
            description: Gives access to all effects!
            children:
                wizard.regen: true
                wizard.haste: true
                wizard.speed: true
                wizard.damage: true
                wizard.jump: true
                wizard.resistance: true
                wizard.absorption: true
                wizard.fireres: true
                wizard.invisibility: true
        wizard.regen:
            description: Allows you to use the regen effect!
            default: op
        wizard.haste:
            description: Allows you to use the haste effect!
            default: op
        wizard.speed:
            description: Allows you to use the speed effect!
            default: op
        wizard.damage:
            description: Allows you to use the damage effect!
            default: op
        wizard.jump:
            description: Allows you to use the damage effect!
            default: op 
        wizard.resistance:
            description: Allows you to use the resistance effect!
            default: op
        wizard.absorption:
            description: Allows you to get two more hearts!
            default: op
        wizard.fireres:
            description: Allows you to get fire resistence!
            default: op 
        wizard.invisibility:
            description: Allows you to get fire invisibility!
            default: op                    
    Like this.
    Th Tab button next to your q. everyline has the right amount of clicks on that button AdamQpzm
     
  17. MinecraftMart That's exactly what I'm getting at. The correct amount of clicks on that particular button is exactly 0. You do not use that particular button in YAML - you use spaces. If you use that particular button you get that particular error that says "Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next token; found character '\t' that cannot start any token" Which is basically the same as saying "I found a tab in this file, there shouldn't be a tab in this file."

    Hopefully you understand now. Change the tabs to spaces.
     
  18. Offline

    Barinade

    MinecraftMart likes this.
  19. Offline

    MinecraftMart

    AdamQpzm

    Thx now i get it. But it still wont work... I really dont know whats wrong

    Barinade Thx this site helped!! Its working now!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
    AdamQpzm likes this.
Thread Status:
Not open for further replies.

Share This Page