Having trouble enabling plugin :(

Discussion in 'Plugin Development' started by KyuubiSage9, Sep 18, 2013.

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

    KyuubiSage9

    Ok, so I am new to coding, and with someone's help on youtube, I made my own plugin. I did everything he said, but when I start my server with it, this comes up.

    http://pastebin.com/wETNXsqW

    I really don't know how to fix it. Here is my main class file that I made in Eclipse.

    http://pastebin.com/t9hTvEiN

    Thank you!

    P.S. My plugin name is kKits if you were wondering.

    Oops! Almost forgot my plugin.yml! Here it is!

    http://pastebin.com/4nSyx1Dg
     
  2. Offline

    Rezeh

    You didn't put your plugin.yml in your project folder it says. You have to right click on your project folder and make a new file called plugin.yml then put in your plugin.yml stuff. You probably put it in the src folder or something.
     
  3. Offline

    xTrollxDudex

    KyuubiSage9
    Wrong plugin.yml directory or an export error occurred.
     
  4. Offline

    KyuubiSage9


    Ok thanks! When I get home and try, I will update you on it.


    I right-clicked on my kKits folder, and made a new plugin.yml. For some reason, I keep getting the same error... Maybe I have to make one in my server plugins folder?

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

    L33m4n123

  6. Offline

    KyuubiSage9


    In my first post, I put a pastebin. Look at that and tell me if anything is wrong.
     
  7. Offline

    L33m4n123


    Oh my bad didn't see that you added it there. Check if it is realy the same error that you get. Check if it really sais

    Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml


    If YES then please tell me WHERE you put your plugin.yml.. Do you have it inside the plugin.jar? If yes. I do not know^^
     
  8. Offline

    xTrollxDudex

    KyuubiSage9
    Please take a screenshot of the project tree
     
  9. Offline

    KyuubiSage9


    Tree.png There it is.

    I have a question. When I put Essentials in, the kit command for Essentials messes up my plugin, so I took it out. i really need Essentials so is there a way I could completely wipe out the "kit" command from the Essentials config?

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

    Janmm14

    KyuubiSage9
    You have to pull your plugin.yml to the src folder!
     
  11. Offline

    KyuubiSage9

    I did, it still doesn't work :(
     
  12. Offline

    xTrollxDudex

    KyuubiSage9
    Actually you drag and drop on top of the project
     
  13. Offline

    KyuubiSage9

    I also did that. didn't work. But, when I export my project into the plugins folder, this warning comes up.

    "JAR export finished with warnings. See details for additional information.
    Exported with compile errors: kKits/src/kKits/main/kKitmain.java"

    I don't know what is wrong with my main class. It is in my first post if would like to see it.
     
  14. Offline

    Janmm14

    KyuubiSage9
    Are there any yellow or red underlinings in your main class in eclipse?
     
  15. Offline

    KyuubiSage9


    Yes when it says "public class kKitmain extends JavaPlugin{" the "kKitmain" is red. And then it says "The hierarchy of the type kKitmain is inconsistent"
     
  16. Offline

    Janmm14

    The name of yiur file has to be exactly like kKitmain
    This has to be in every Java class.
    Click on the left on the red and choose rename file or something like that or do it yourself.
     
  17. Offline

    KyuubiSage9


    Sorry I am still very confused. Can you look at my previous post where I posted my project tree. Do I need to change everything's name to kKitman? Or do I need to do something else?
     
  18. Offline

    Janmm14

    KyuubiSage9
    delete the first plugin.yml directly below kKitsmain.java

    Edit: What does it say if you click on the red symbol left of the red underlining?
     
  19. Offline

    KyuubiSage9


    Ok I did, is that all I have to do?

    The red symbol? I don't see one.
     
  20. Offline

    Janmm14

  21. Offline

    PatoTheBest

    right click src folder, new file, plugin.yml and fill it out (name, version, commands)

    and main (cAsE SeNsItIvE)

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

    KyuubiSage9

  23. Offline

    Janmm14

    PatoTheBest
    You didn't looked at the picture of his project tree. He had two plugin.yml, only one at correct place.
     
  24. Offline

    PatoTheBest

    Janmm14 Oh, I didn't see the second one

    I think that the plugin.yml should be:
    Code:
    name: kKits
    main: kkits.main.kKitmain
    version: 1.0
    author: KyuubiSage9
    commands:
      kit:
        description: Your desc here
     
  25. Offline

    KyuubiSage9

    Oops, so should I delete the two plugin.yml i just made?
     
  26. Offline

    Janmm14

    KyuubiSage9
    Aee there still any red (errors) or yellow (warnings)?
     
  27. Offline

    KyuubiSage9

    Still the same kKitmain underlined with red for the same reason... Why?
     
  28. Offline

    PatoTheBest

    hover over the red line, take a photo and upload it so we can see
     
  29. Offline

    Janmm14

    KyuubiSage9
    You need 1 plugin.yml directly in your src folder. Delete any other plugin.yml files and be sure the plugin.yml contains the needed things - see wiki - name, author, main, commands, permissions.

    And don't forget to tell me the error eclipse marked.
     
  30. Offline

    KyuubiSage9

    Ok, I could only get this screenshot becuase I don't know how to get the full screen. And I'll do that Janmm14.

    Error.png
     
Thread Status:
Not open for further replies.

Share This Page