Solved plugin.yml error?

Discussion in 'Plugin Development' started by Samthelord1, Aug 22, 2013.

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

    Samthelord1

    Hi, I've been coding plugins for quite a while now, and I've come across a "noobish" error, but I simply do not know what it is, help is appreciated, my plugin.yml looks like this, please note, I know about YAML's not allowing tabs, and I haven't used them.

    name: Tazer
    main: me.samthelord1.tazer.Tazermain
    version: 1.0.0
    author: samthelord1
    commands:
    tazer:
    description: Get a tazer!
    usage: /<command>
    permissions:
    tazer.taze:
    description: Taze
    default: op
    tazer.get:
    description: Get a tazer
    default: op

    My stack trace:

    21:00:21 [SEVERE] Could not load 'plugins/tazer.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_6_R2.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217)
    at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56)
    at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11)
    at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106)
    at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391)
    at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  2. Offline

    KingNyuels

    Is the plugin.yml in the src folder of the project?
    When not drag and drop it into the folder!

    KingNyuels
     
  3. Offline

    Samthelord1

    KingNyuels my plugin.yml is in the plugin folder, as I said, I am updating the plugin.yml from what it had been before, and what do you mean by drag and drop it into the folder?
     
  4. Offline

    KingNyuels

    The Project is setup so:
    ProjectName
    -src
    -Package with your classes

    Just put the plugin.yml in the src-folder (in eclipse you can drag and drop it!)
     
  5. Offline

    Samthelord1

    KingNyuels 1.
    2. I'm not using eclipse, I'm using netbeans.

    chasechocolate any idea?

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

    chasechocolate

    Samthelord1 it has to be formatted correctly, try this:
    Code:
    name: Tazer
    main: me.samthelord1.tazer.Tazermain
    version: 1.0.0
    author: samthelord1
    commands:
      tazer:
        description: Get a tazer!
        usage: /<command>
    permissions:
      tazer.taze:
        description: Taze
        default: op
      tazer.get:
        description: Get a tazer
        default: op
     
  7. Offline

    Samthelord1

  8. Offline

    chasechocolate

    Samthelord1 ah, ok. In the error, see this?
    Code:
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
    When you are exporting your project, make sure that the plugin.yml file gets exported too. Also, it has to be inside the project folder rather than in some package or sub-folder.
     
  9. Offline

    Samthelord1

    chasechocolate that's where I'm stuck, because this has only happened today when I've been building it, it's saying that even though I've edited no preferences in netbeans

    chasechocolate https://forums.bukkit.org/threads/plugin-yml-not-found-in-jar.115409/ you commented xD I think I should put it into my src because looking at that I think I have the same error ;) will test and edit to solved

    chasechocolate hey, what do you know! :D fixed

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

Share This Page