public PluginDescriptionFile getPluginDescription(File file) throws InvalidDescriptionException {
if (file.getName().endsWith("fmlmod"))
{
String modName = file.getName().substring(0, file.getName().lastIndexOf("."));
FMLLog.info("Scanning %s for bukkit plugin data", modName);
ModContainer mc = Loader.instance().getIndexedModList().get(modName);
String clName = BukkitContainer.instance.pluginManager.getBukkitPluginClass(mc);
return new PluginDescriptionFile(mc.getModId(), mc.getVersion(), clName);
}
else
{
return super.getPluginDescription(file);
}