Solved Help within the next day: Unable to make Plugins

Discussion in 'Plugin Development' started by juffatoot, Mar 15, 2014.

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

    juffatoot

    Okay, I can't make any plugins. When I try exporting it, it doesn't work. I have plugin.yml:
    Code:java
    1. name: FlashFlood
    2. version: 1.0.0
    3. description: This plugin is for the minigame FlashFlood!
    4. author: jf83822
    5. authors: [jf83822, BenFiger]
    6. website: [url]http://www.bananarinemc.enjin.com/[/url]
    7.  
    8. main: com.gmail.juffatoot.flashflood.Main
    9. database: false
    10.  
    11. commands:
    12. blockchanger:
    13. description: Toggle plugin on/off
    14. aliases: [FlashFlood]
    15. permission: flashflood.toggle
    16. usage: Syntax error! Simply type /<command> to toggle.
    17.  
    18.  
    19. permissions:
    20. flashflood.*:
    21. description: Gives access to all FlashFlood commands
    22. children:
    23. flashflood.toggle: true
    24. flashflood.toggle:
    25. description: Allows you to toggle plugin.
    26. default: true

    This is the error message:
    Code:
    censor:~ censor$ /Users/censor/Desktop/Bananarine\ Plugin\ Server/start_server.command ; exit;
    Loading libraries, please wait...
    [15:30:51 INFO]: Starting minecraft server version 1.7.2
    [15:30:53 INFO]: Loading properties
    [15:30:54 INFO]: Default game type: SURVIVAL
    [15:30:54 INFO]: Generating keypair
    [15:30:55 INFO]: Starting Minecraft server on *:25565
    [15:30:58 INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.2-b2974jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.2)
    [15:31:00 ERROR]: Could not load 'plugins/FlashFlood.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
    at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:247) ~[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.io.FileNotFoundException: Jar does not contain plugin.yml
    ... 9 more
    I may have different versions, but Only by 0.1 version, could someone please tell me what's wrong?

    Also, This is how my folders are set out:
    FlashFlood
    src
    com.gmail.juffatoot.flashflood
    Main.java
    BlockChanger.java
    plugin.yml
    (end)
     
  2. Offline

    Wizehh

    juffatoot
    Can you post a screenshot of your project's workspace?
    Code:
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  3. Offline

    juffatoot

    That was quick, here it is:
     

    Attached Files:

  4. Offline

    juffatoot

  5. Offline

    mazentheamazin

    juffatoot
    Your plugin.yml is in the wrong location, move it into the base project directory (Where the src folder is)
     
  6. Offline

    juffatoot

    I've done that as well, it still doesn't work. But I'll change it to that for now, thanks.
     
  7. Offline

    mazentheamazin

    juffatoot
    You need to move it then hit F5 on the file, as well as the project then export it (Refreshes the whole project)
     
  8. Offline

    Wizehh

    It should look something like this (ignore the 'lang.yml' file):
    [​IMG]
     
  9. Offline

    juffatoot

    I always refresh before exporting, but thanks.

    so no main file? I'm confused...
    Also, When I export it it turns to a folder with the following:
    Code:
    FlashFlood
      bin
        com
          gmail
            juffatoot
              flashflood
                Main.class
                BlockChanger.class
      src
        com
          gmail
            juffatoot
              flashflood
                Main.java
                BlockChanger.java
      plugin.yml
    Okay, Apparently I'm using javaSE-1.6 instead of 1.7
    just picked it up, would this be the problem?

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

    Wizehh

    Drag your 'plugin.yml' file below 'Referenced Libraries'. Then, refresh (F5) and save (CTRL+S) your project.
    If that still doesn't work, please post another screenshot.
     
  11. Offline

    juffatoot

    S
    Sorry I took so long to respond, had to finish up maths study. It still didn't work images coming right up

    View attachment 18612

    View attachment 18614

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

    Wizehh

    Hmm. That looks fine to me. Try opening the .jar as an archive and see if it contains the plugin.yml file.
     
  13. Make sure that you're exporting the project, not the src folder.
     
  14. Offline

    juffatoot

    okay i have a 1.7 server and i use the 1.6 javaSE
    also, When I export it it's already a folder, so i compress it so, yes it does contain it.
     
  15. Offline

    97WaterPolo

    juffatoot
    Not in the referenced libraries, but below it. Meaning you need to drag it I to the FlashFlood folder.
     
  16. Offline

    juffatoot

    Hey big, good to see you again, buddy. I've said previously that I do export that folder.

    It was already in the main folder, look closer..
    :).

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

    97WaterPolo

    juffatoot
    Oops, my bad! :p

    Should be working if it is there, is it correctly formatted? Check it at http://yaml-online-parser.appspot.com/

    Since it says the file isn't found, are you sure your exporting all of it? So,e time eclipse goes crazy and would only export my src, or only my plugin.yml.
     
  18. Ohh! Check you're export configuration! Make sure that everything is selected!
     
  19. Offline

    juffatoot

    uuh....here's the formatting
    Code:java
    1. name: FlashFlood
    2. version: 1.0.0
    3. description: This plugin is for the minigame FlashFlood!
    4. author: jf83822
    5. authors: [jf83822, BenFiger]
    6. website: [URL]http://www.bananarinemc.enjin.com/[/URL]
    7.  
    8. main: com.gmail.juffatoot.flashflood.Main
    9. database: false
    10.  
    11. commands:
    12. blockchanger:
    13. description: Toggle plugin on/off
    14. aliases: [FlashFlood]
    15. permission: flashflood.toggle
    16. usage: Syntax error! Simply type /&lt;command&gt; to toggle.
    17.  
    18.  
    19. permissions:
    20. flashflood.*:
    21. description: Gives access to all FlashFlood commands
    22. children:
    23. flashflood.toggle: true
    24. flashflood.toggle:
    25. description: Allows you to toggle plugin.
    26. default: true


    huh? I right click the folder that contains everything click refresh, then click export. Thanks, for you help big

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

    Wizehh

    I don't think it has anything to do with the formatting:
    Code:
    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
     
  21. Offline

    97WaterPolo

    juffatoot
    Yea, you should have posted this to start with! :p simple fix hopefully. Yaml doesn't support URL tags. Try

    Code:
    
    name: FlashFlood
    version: 1.0.0
    description: This plugin is for the minigame FlashFlood!
    author: jf83822
    authors: [jf83822, BenFiger]
    website: http://www.bananarinemc.enjin.com/
     
    main: com.gmail.juffatoot.flashflood.Main
    database: false
     
    commands:
      blockchanger:
        description: Toggle plugin on/off
        aliases: [FlashFlood]
        permission: flashflood.toggle
        usage: Syntax error! Simply type /&lt;command&gt; to toggle.
     
     
    permissions:
      flashflood.*:
        description: Gives access to all FlashFlood commands
        children:
          flashflood.toggle: true
      flashflood.toggle:
        description: Allows you to toggle plugin.
        default: true
    
    Wizehh
    Even if it isn't, if he did fix the yml not bring there, how would he know it worked? At least it would fix a future error.
     
  22. Offline

    juffatoot

    then what is it? I've included everything that needs to be included and more.

    rea
    really??????? I'll try that. If it still doesn't work I'll say. Also look above is it because of 1.6 javaSE and I have a 1.7 server no-one's answered that and it may be the problem.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  23. Ummmm... First of all, very strange.
    Try to remove the database and the website as they are not needed.
     
  24. Offline

    Wizehh

    juffatoot
    Make sure you have all of these options ticked (ignore 'lang.yml'):
    [​IMG]

    [​IMG]
     
  25. Offline

    97WaterPolo

    juffatoot
    Java version has nothing to do with the minecraft version. I would recommend using java 7 as I believe that's what all of it is built with.
     
  26. It can't be the problem.
    It doesn't matter that this is a 1.7 server. This is a 1.7 server because this is the MC version.
     
    97waterpolo likes this.
  27. Offline

    juffatoot

    still not working :/

    I'm using java 7 also, how would a 1.6 plugin work with a 1.7 server?

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

    97WaterPolo

    juffatoot
    Error still the plugin.yml isn't found?

    At least it will save you from a future error.

    Minecraft version and java version are seperate. Just ignore them. Make sure you are using the rig bukkit build and that you are compiling against 1.7
     
  29. Offline

    juffatoot

    k... Replied with same answer as post above. :)

    mmm......still not idk why. *sigh. Any other suggestions?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  30. juffatoot
    You can change the compiler level to JavaSE-1.7, but it will do nothing.
    If you want to change, go to the properties of the project, Java Compiler and change to 1.7.

    Then go to the Build Path and do add library and add the JRE System Library. then, do next and choose 1.7. Then remove the 1.6 library.
     
Thread Status:
Not open for further replies.

Share This Page