Invalid plugin.yml [HELP]

Discussion in 'Plugin Development' started by EpicDinosaurz, Jan 26, 2014.

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

    EpicDinosaurz

    Hey there!

    I am making a plugin called "FancyItems" and I got it all coded and stuff but when I put it into a server I get an error that it is an invalid plugin.yml Below you can find my plugin.yml
    http://pastebin.com/kKB8SEz6

    Now, I am nearly sure this is a simple fix. Can somebody tell me what I did wrong, if not, can somebody just tell me how to fix the issue or even possible fix the issue for me? :D

    Thanks in advance,
    EpicDinosaurz
     
  2. Offline

    MrInspector

    Can you post your full error log as I'm nearly sure your plugin yml is fine, but any un-needed spacings will / may screw up the plugin yml, also make sure you have the right package and class for main:
     
  3. Offline

    jimuskin

    EpicDinosaurz Are you using eclipse? Where did you place your plugin.yml - inside the package?
     
  4. Offline

    EpicDinosaurz

  5. Offline

    ItsLeandro

    The plugin.yml seems fine but we can't see where you placed the plugin.yml and what your main is.
     
  6. Offline

    _Cookie_

    @EpicDinosaurz
    Your plugin.yml doesn't have:
    description: Making Items Fancy
     
  7. Offline

    MrInspector

    Description actually isn't necessary, it's optional. :p
     
  8. Offline

    _Cookie_

    Really?! <The more you know> :p
     
    EpicDinosaurz and MrInspector like this.
  9. Offline

    PePsiGam3r

    Your plugin.yml is fine, make sure the package is valid, or anything like that, or the error is not from the plugin.yml maybe it's from the codes!

    ' Sorry for my bad english '
     
  10. Offline

    EpicDinosaurz

    I will double check the code and make sure everything matches up. If I continue to have the problem I will be sure to come back here.

    Thanks for all your help guys! :p

    OK, so I got it all right. I am sure. But I am getting this error: http://pastebin.com/rKKzEvZK

    Here is my plugin.yml file: http://pastebin.com/UTTExQZX

    Please help.. I don't understand what the problem is. If you have a solution comment!! All help is much appreciated.

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

    MOMOTHEREAL

    It cannot find class me.epicdinosaurz.fancyitems.FancyItems
    Which is normal since the yml file is in the package itself. Put the plugin.yml in the Project root, should be fine.
     
  12. Offline

    L33m4n123

    How is your Main class called? How is the package called it is in? It says it cannot find the main class / you enterd an invalid one

    Code:
    main: package.name.and.MainClass
     
  13. Offline

    EpicDinosaurz

    MOMOTHEREAL What do you mean by the root? I thought I had it in the root.
     
  14. Offline

    MOMOTHEREAL

    EpicDinosaurz Is the file in the package or in the Project directly?
     
  15. Offline

    ColaCraft

    Your spacing seems to be messed up.
    Every indent is 4 hits of the space bar, not the TAB button.
    Capitalization does matter on the class.
     
  16. Offline

    EpicDinosaurz

  17. Offline

    ColaCraft


    If the Bukkit detected the plugin.yml at all you'd get a different error in your console.

    It's either an issue exporting or the plugin.yml is in the wrong place
     
  18. Offline

    EpicDinosaurz

  19. Offline

    ColaCraft


    Try hitting "Configure build path"- and try fixing the errors in your JAR
     
  20. Offline

    EpicDinosaurz

    OK, I fixed the build path issue. But it is still exporting with compile issues. Here is the screenshot http://prntscr.com/2n8aaj
     
  21. Offline

    ColaCraft


    You just have to fix the errors in your classes
     
  22. Offline

    Opacification

    EpicDinosaurz

    For your plugin.yml change this:

    Code:java
    1. name: FancyItems
    2. main: me.epicdinosaurz.fancyitems.FancyItems
    3. version: 1.0
    4. author: EpicDinosaurz
    5. commands:
    6. fhname:
    7. usage: /<command>
    8. permission: fancyitems.use
    9. permission-message: You do not have permission.
    10. fhdesc:
    11. usage: /<command>
    12. permission: fancyitems.use
    13. permission-message: You do not have permission.


    If that doesn't work, pastebin all you code, i'll see what's wrong! :)
     
  23. Offline

    EpicDinosaurz

    Opacification Do I put the numbers (1,2,3,4) in front of each line?

    Oh, and now I get this error: http://prntscr.com/2n8efz

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

    Opacification

  25. Offline

    EpicDinosaurz

    lol i removed dis link.
     
  26. Offline

    Opacification

  27. Offline

    EpicDinosaurz

  28. Offline

    Opacification

    EpicDinosaurz, it looks like you didn't so some of the imports:
    Player:
    CommandSender:
    Command: (org.bukkit.command)
     
  29. Offline

    Ar7ific1al

    Make sure you've got craftbukkit.jar set as an external jar in the project's build path.
     
  30. Offline

    EpicDinosaurz

    Thanks Ar7ific1al that removed *ALl* of the errors. I knew I did something wrong with the build path :p and a Opacification thanks for your help with the plugin.yml I really appreciate it :D

    Actually, when I export I still get warnings. http://prntscr.com/2n8koe

    OK, so I decided to decompile the plugin after I exported it (With the warnings) and it appears as if it is all there. So I decided to run it through a server and I got this error: http://pastebin.com/jPn2kji8
    Opacification Ar7ific1al

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

Share This Page