Plugin.yml?

Discussion in 'Plugin Development' started by James | Buchanan, Oct 22, 2011.

Thread Status:
Not open for further replies.
  1. Hello. I have been developing a plugin which counts how many kills a player has. But, there is a problem :(. When I Compile The Project To A .Jar, the eclipse compiler gives an error: "plugin.yml is out of sync with the file system". How can i fix?

    (More Info)
    -I Have A Mac
    -I Use Eclipse
    -I Am Using CraftBukkit (not bukkit) for a referenced library
     
  2. Offline

    nicholasntp

    I had the same problem the other day. Just right click plugin.yml and hit Refresh in the file menu. Then you can compile again. :)

    EDIT: My "More Info" Is the same as yours. XD
     
  3. Yes, just refresh. You can also hit F5 (I think thats the key :p)
     
  4. Thanx! I'll try it out right now!

    oh yeah, could you also give me a template on what i have to put in the plugin.yml?

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

    NeoSilky

    a basic one:

    name: BlockBlock
    main: me.neosilky.BlockBlock.BlockBlock
    version: 1.43
    author: neosilky
     
  6. sorry, im kind of a newb, how do i call the version in the onEnable and onDisable?
     
  7. Offline

    petteyg359

  8. Offline

    NeoSilky

    In your onEnable, put this in:
    PluginDescriptionFile pdfFile = getDescription();
    and then whenever you want the version, use this:
    pdfFile.getVersion()
     
  9. thx a bunch, im done!
     
  10. Offline

    NeoSilky

    No Problem :)
     
  11. Offline

    Windwaker

Thread Status:
Not open for further replies.

Share This Page