Couldn't not load plugin.yml??!

Discussion in 'Plugin Development' started by FastFuture, Jul 30, 2013.

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

    FastFuture

    Hey guys i made a plugin and im trying to export it at my server but everytime i start it up its says couldn't not load plugin and its says invalid plugin.yml and have typed the right stuff in there i have tried to export it with the code and in referenced librares with the craftbukkit i marked the plugins.yml and exported but i keep getting the same error everytime ?? any help
     
  2. Offline

    SnipsRevival

    Can you post your plugin.yml?
     
  3. Offline

    FastFuture

    post where? here?
     
  4. Offline

    clienthax

  5. Offline

    evilguy4000

    FastFuture
    Please post your text inside your plugin.yml here so we can have a look at it.
    Thats the only way we can help you here ;)
     
  6. Offline

    FastFuture

    i typed this in the plugin.yml

    name: gravitygun
    version: 1.0
    main: com.gravitygun.Gravitygun
    description: Modify the gravity of any block!
    author: FrostyFuture
    commands:
    gravitygun:
    description: GravityGun command!

    but i get cannot load plugin /gravitygun i made my simple own gravitygun.
    but i get jar doesn't contain plugin.yml and its says invalid plugin.yml
     
  7. Offline

    Samthelord1

  8. Offline

    evilguy4000

    FastFuture
    What is you class file name? Because the problem could be you only made a reference to the package but you need to reference to your main class file :p it would be something like be.PandaProgramming.Test.Main
    my package is called be.PandaProgramming.Test and my main class file is called Main :p
     
  9. Offline

    Samthelord1

    evilguy4000 besides that, I think his yaml might be in the wrong place.
     
  10. Offline

    FastFuture

  11. Offline

    evilguy4000

    Samthelord1
    Don't be so harsh with the newcomers to Bukkit. they are still learning, just as i'm doing.
     
  12. Offline

    FastFuture

    add me at skype: DimplyAndreas if somone can help me
     
  13. Offline

    RROD

    Sounds like your plugin.yml isn't packaged when you export your plugin to a jar file. When you go to export it in eclipse, make sure that the file is checked to be included in the jar.

    If you can't find it for some reason, jar files are essentially zip files. You can open them with something like 7-zip, WinRAR, or Windows Explorer. Drag and drop your plugin.yml into the jar file and you should be good to go.
     
  14. Offline

    Samthelord1

    How is that being harsh? I was suggesting a possible error..
     
  15. Offline

    xTrollxDudex

    evilguy4000
    Seriously?
    I think he was just being "focused" on the task at hand. It makes you sound serious but not intent on bein mean. If you are on bukkit for a long time, you will figure out this is how most people reply.
     
  16. Offline

    FastFuture

    i will give a try RRod

    but i use the main: com.gravitygun since the com.gravitygun is the package name and i type com.gravitygun.GravityGun since i type the name of the code so the Main is GravityGun

    anyone of you could help me? add me at skype: DimplyAndreas so we can talk in a call please !

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

    SnipsRevival

    Are you using tabs or spaces in your plugin.yml? Make sure you are using the latter.
     
  18. Offline

    FastFuture

    im using tabs and spaces in it if you add me i can show you it please add me at skype: DimplyAndreas
     
  19. Offline

    SnipsRevival

    Do not use tabs in a YAML file. Replace any tabs you have in your plugin.yml with spaces.
     
  20. Offline

    FastFuture

    name: Simplegravitygun
    version: 1.0
    main: com.gravitygun.Gravitygun
    description: Modify the gravity of any block!
    author: FrostyFuture
    commands:
    gravitygun:
    description: GravityGun command!
    i have it like this in the plugin.yml
     
  21. Offline

    xTrollxDudex

  22. Offline

    FastFuture

    xTrollxDudex what do you mean with the stack trace? im new with exporting plugins and that so i dont know what stack trace is
     
  23. Offline

    SnipsRevival

  24. Offline

    FastFuture

    Thanks SnipsRevival i have read the thread so i hope i find any problem in the console

    but could anyone add me at skype: DimplyAndreas so we can talk since it will be a little easier.

    i still don't know the problem in the plugin.yml http://gyazo.com/cb97404f7b8611889346e31ee71a2f65
    look at the link its a picture

    guys i fixed it Hurray !!

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

Share This Page