Invalid Plugin YML

Discussion in 'Plugin Development' started by AnaIyzed, Sep 13, 2013.

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

    AnaIyzed

    Just trying to do a basic plugin with all my plugins I cannot run it because of this error I have no clue


    could not load 'plugins/mSpawns.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)
    name: mSpawns
    main: com.ETHAN.mSpawns
    description: To prevent mob spawners from spawning!
    version: 0.1
    My plugin.yml ^
    Please tell me what I'm doing wrong
    I'm on a mac
     
  2. Offline

    iiHeroo


    I've had issues doing plugin.yml, paste your plugin.yml please using pastie.org
     
  3. Offline

    AnaIyzed


  4. You need to specify the main class in your package:

    Code:
    name: mSpawns
    main: com.ETHAN.mSpawns.MAINCLASSHERE
    description: To prevent mob spawners from spawning!
    version: 0.1
     
  5. Offline

    iiHeroo


    Did you add commands into this plugin ? Because if so, you need to put them in your plugin.yml, and did you type the "main" type thing correctly ?
     
  6. Offline

    AnaIyzed

    No commands in this plugin and I added main to the plugin.yml i'm still getting the error
     
  7. Offline

    iiHeroo

    ok, I see something, try replacing the "!" with a "." in the description


    I don't believe so dood, this is my main class and I'm error free
    Code:
    main: server.stuff.info
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  8. Ok, that's you. I'd like to know what he has :p
     
  9. Offline

    iiHeroo


    I think it's his Plugin Description because look at this

     
  10. Offline

    AnaIyzed

    I tried making the ! to a . still a error
     
  11. Offline

    Harmings

    It doesn't look like anything is wrong, try refreshing your plugin.yml
     
  12. Offline

    AnaIyzed

    I have.
     
  13. Offline

    revanevan99

    Guys This Is What You Have TO Do Ok You Have To Delete The Plugin Yml And Then Click your package and then right click and then new then file then put in it plugin.yml then put this in

    =============================KEY SENSITIVE====================================

    name: Name Of Plugin
    main: (Package.FirstClassMade)
    version: (Version of the Plugin like .01)
    author: (Your Name)

    commands:
    <Commands>:
    description: <description of the command>
    usage: /<command>
    permission: (Permission for the command)
    permission-message: You don't have permission <permission>
    <Command>:
    description: <description of the command>
    usage: /<command>
    permission: (Permission for the command)
    permission-message: You don't have permission <permission>
     
  14. Offline

    Harmings

    Try re-exporting your plugin but before you click finish make sure plugin.yml is checked, I think you exported your plugin without it checked.
     
  15. Offline

    Axe2760

    Add it to your package? Don't do that ...
     
  16. Offline

    AnaIyzed

    It's checked.
     
  17. Did you try my suggestion?
     
  18. Offline

    AnaIyzed

  19. And?

    EDIT: Also, make sure to tag or reply to people, otherwise they will never know you replied to them
     
  20. Offline

    revanevan99

    no dont it doesnt work for me xD
    but try both :p
     
  21. Offline

    AnaIyzed

    None of these work :( this sucks
     
  22. Offline

    Wolvereness Bukkit Team Member

    The jar doesn't contain a plugin.yml. Next time, PLEASE include the ENTIRE error for people to help you. The actual exception includes "cause by" "file not found".

    To fix this, make sure the plugin.yml is being exported with your project.
     
  23. Offline

    AnaIyzed



    It is getting exported with the plugin.....
     
  24. Offline

    Wolvereness Bukkit Team Member

    According to Bukkit, it's not where it needs to be in the jar.
     
  25. Offline

    AnaIyzed

    Well I've changed it out and in so I don;t know

    Well nobody is helping me

    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