Solved plugin.yml

Discussion in 'Plugin Development' started by rob1998@, Jan 13, 2014.

Thread Status:
Not open for further replies.
  1. I'm getting the following error:
    Code:
    Could not load 'plugins/._KitBerserker.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        ... 13 more

    this is my plugin.yml:

    Code:
    name: KitBerserker
    main: me.rob1998.KitBerserker.KitBerserker
    version: 1.1
    description: Allow players to access a cool kit and have cool status effects on kills.
    authors:
      - rob1998
    commands:
      berserker:
        description: Get the kit.
        usage: /berserker
    permissions:
      kit.berserker:
        description: Allow player to access kit.
        default: op
    
     
  2. Offline

    Maurdekye

    Are there any tabs in your .yml? Make sure of that first. Also, are you sure that authors are listed with dashes before their names? Try this;
    Code:
    authors:
      rob1998
     
  3. Offline

    Mathias Eklund

    AS there is only one author do author: name .
     
  4. Maurdekye No tabs, with dashes

    still doesn't work

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

    Mathias Eklund

    The description is invalid.
     
  6. yeah, but what exactly is the problem?
     
  7. Offline

    Mathias Eklund

    I don't know, try removing it and see if it solves the problem?... Can't really see any faults in the file.
     
  8. Offline

    Maurdekye

    All of a sudden I'm getting similar problems with my plugin.yml, after adding permissions. I think that might have something to do with it.
     
  9. error:
    Show Spoiler
    Code:
    [12:25:21 ERROR]: Could not load 'plugins/._KitBerserker.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.reload(CraftServer.java:628) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.Bukkit.reload(Bukkit.java:279) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        ... 13 more


    Plugin.yml:

    Show Spoiler
    Code:
    name: KitBerserker
    main: me.rob1998.KitBerserker.KitBerserker
    version: 1.1
    description: Allow players to access a cool kit and have cool status effects on kills.
    author: rob1998
    commands:
      berserker:
        description: Get the kit.
        usage: /berserker
    permissions:
      kit.berserker:
        description: Allow player to access kit.
        default: op
     
  10. Offline

    Jazed

    rob1998@ You probably have some tabs, use an editor like Notepad++ and instead of pressing tab, use spaces.
     
  11. I really don't have any tabs, tried in several editors
     
  12. Offline

    Jazed

    rob1998@ If you remove the description, is the problem fixed?
     
  13. No
    Show Spoiler

    Code:
    Could not load 'plugins/._KitBerserker.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:255) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.java:255) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:233) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:243) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-b2974jnks]
        ... 8 more
    


    plugin.yml
    Show Spoiler

    Code:
    name: KitBerserker
    main: me.rob1998.KitBerserker.KitBerserker
    version: 1.1
    author: rob1998
    commands:
      berserker:
        usage: /berserker
    permissions:
      kit.berserker:
        default: op


    but I don't think it has to do with the description see this part from the error:
    Show Spoiler

    Code:
    Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:214) ~[?:1.7.0_40-ea]
        at java.util.zip.ZipFile.<init>(ZipFile.java:144) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:153) ~[?:1.7.0_40-ea]
        at java.util.jar.JarFile.<init>(JarFile.java:117) ~[?:1.7.0_40-ea]
     
  14. Offline

    metalhedd

    Wow, read the exception guys. It's not a yaml parse error. it's a zip exception. it can't read from the jar file. I don't believe the issue is with his code.
     
  15. Offline

    jacklin213

  16. Offline

    metalhedd


    NO that's not it either :p

    Look at the jar filename. "._KitBerserker.jar" seems unusual no? and clearly the error message has to do with an error, READING THE ZIP FILE. not parsing the yaml. @rob1998 rename your jar to "KitBerserker.jar" and try again.
     
    jacklin213 likes this.
  17. Offline

    jacklin213

    Ah yes the Filename lol
     
  18. The strange thing is that I named my jar to "KitBerserker.jar" and there is no file on my hard drive called "._KitBerserker.jar"...
     
  19. Offline

    metalhedd

    a filename beginning with . is hidden (on os x and linux anyway) it's probably there, you just don't see it. if you're on one of those os's. try `ls -alh` or show all hidden files.
     
  20. I know, but it really isn't there. I even deleted the plugin folder and made a new one, but still not working

    Okay, I got it working again. I did a full reinstall and now it works..

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

    AmShaegar

    Could you upload the file somewhere for me to take a look inside and make sure you are exporting correctly?
     
  22. Offline

    ShearsSheep

    okay i'm gonna give chu an example
    Code:java
    1. name: EChub
    2. main: me.ShearsPig.Hub.Main
    3. version: 1.0
    4.  
    5. commands:
    6. Command:
    7. description: This is the where the command get's stored. when a player does /help this appears!
    8. permissions:
    9. plugin.*:
    10. description: All plugins
    11. children:
    12. plugin.command: true
    13. plugin.plugin: false
    14. plugin.plugin:
    15. description: This is your plugin permission (IF you do not have , IGNORE)
    16. default: op
     
  23. I know how to make a plugin.yml file, but that wasn't the problem.
    I already set this discussion to Solved...
     
Thread Status:
Not open for further replies.

Share This Page