Solved "Jar does not contain plugin.yml"

Discussion in 'Plugin Development' started by Org, May 12, 2013.

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

    Org

    Hi! Just started with plugin development so I'm pretty much a total newbie.

    I just finished my first plugin which is supposed to be a logging utility for the chat that stores messages in a remote MySQL database. Pretty simple.

    Now, I start by exporting my whole plugin package + resource files (using Eclipse as IDE) and I get no errors so far. Then I start up my test server running CraftBukkit 1.4.7 with my plugin in the plugins folder and get this error thrown at me:

    Code:
    [SEVERE] Could not load 'plugins/BitChat.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239)
        at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217)
        at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 9 more
    Looks like I have no plugin.yml, right? Well I have created a plugin.yml file that contains this:
    Code:
    name: BitChat
    main: me.theoriginal.bitchat.BitChat
    version: 1.0
    commands:
      logcommands:
        description: Toggles chat logging.
        usage: /bcl
    I have decompiled the plugin Jar file and the plugin.yml sure is included inside it. Any ideas what I'm doing wrong?

    /Org

    Resolved! The plugin.yml was inside the package and had to moved up one directory ;)

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

Share This Page