// extract icon from the plugin jar file
icon = new ImageProvider(iconPath).setArchive(file).setMaxWidth(24).setMaxHeight(24).setOptional(true).get();
}
if (oldcheck && mainversion > Version.getInstance().getVersion()) {
int myv = Version.getInstance().getVersion();
for (Map.Entry<Object, Object> entry : attr.entrySet()) {
try {
String key = ((Attributes.Name)entry.getKey()).toString();
if (key.endsWith("_Plugin-Url")) {
int mv = Integer.parseInt(key.substring(0,key.length()-11));
if (mv <= myv && (mv > mainversion || mainversion > myv)) {