Solved plugin.yml errors? No idea why.

Discussion in 'Plugin Development' started by 22vortex22, Oct 6, 2013.

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

    22vortex22

    Ok I am have posted alot in this forum but my plugin can't load because there is something wrong with my plugin.yml. My server is giving me this error.

    Code:
    14:18:29 [SEVERE] Could not load 'plugins\EasyPvpKits.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPlug
    inLoader.java:257)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:132)
            at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.ja
    va:239)
            at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:21
    7)
            at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56)
            at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11
    )
            at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.jav
    a:107)
            at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java
    :393)
            at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:5
    83)
    Caused by: while scanning for the next token
    found character        '\t' that cannot start any token
    in "<reader>", line 12, column 4:
              description: Gives the user t ...
    I do not understand why it can't load my plugin because of this but here is my plugin.yml.

    Code:java
    1.  
    2. name: Easy Pvp Kits
    3. version: 1.0.0
    4. main: com.gmail.codervortex.EasyPvpKits
    5. author: Vortex
    6. description: A simple and easy to use pvp kit plugin.
    7. commands:
    8. Pvp:
    9. description: Gives the user the default pvp kit.
    10. Archer:
    11. description: Gives the user the archer kit.
    12. Heavy:
    13. description: Gives the user the heavy kit.
    14.  
     
  2. Offline

    Seadragon91

    That says everything '\t'. You have tabs in your plugin.yml. Tabs are not allowed, replace them with spaces.
     
  3. Offline

    Goblom

    You have too many spaces in the under the commands...

    YAML is very picky.
    • No spaces = top level
    • 2 spaces = 2nd level
    • 4 spaces = 3rd level
    • 6 spaces = 4th level
    You had 6 spaces under "commands.PvP", "commands.Archer", "commands.Heavy". YAML processed them correctly but Bukkit didn't know how read them. (My understanding)

    Fixed YAML is below
    Code:
    commands:
      Pvp:
        description: Gives the user the default pvp kit.
      Archer:
        description: Gives the user the archer kit.
      Heavy:
        description: Gives the user the heavy kit.
     
Thread Status:
Not open for further replies.

Share This Page