Bukkit/Bukkit — pull request #582 by EyesOnly89 (2012-04-11 21:54:32+00:00)
Title: Updated support for unpacked folder, Addresses BUKKIT-1404

As far as I can understand the main problem when trying to use a folder instead of a JAR, when trying to run a plugin seems to be that the getPluginDescription(File file) is dead set for it to be a Jar, thus when trying to get "plugin.yml" things goes bad.

What I did was I added a check to see if the File possibly could be a folder and then handeled it and looked for a file in that folder named "plugin.yml". If not it behaves like when it didn't find it for a JAR.

I tested on my downloaded Plugins and so far so good seems to be working.

As this is my first contribution any feedback is appreciated.