Fix modules not loading. Bump version number

This commit is contained in:
HappyPikachu 2017-06-22 21:54:54 -04:00
parent af30817918
commit 88c892fde7
2 changed files with 6 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId>
<version>2.8.4</version>
<version>2.8.5</version>
<name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging>

View File

@ -614,9 +614,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
try {
JarFile jarFile = new JarFile(jar);
@SuppressWarnings("resource")
JarFile jarFile = new JarFile(jar);
Enumeration<JarEntry> e = jarFile.entries();
jarFile.close();
URL[] urls = {new URL("jar:file:" + jar.getPath() + "!/")};
@ -680,14 +680,15 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
}
}
}
if(count == 0) {
getLogger().severe("Error: Unable to load module from file: " + jar.getName() + ", jar file is not a valid module!");
getLogger().severe("Unable to load module from file: " + jar.getName() + ", jar file is not a valid module!");
}
} catch (Exception e) {
getLogger().severe("Error: Unable to load module from file: " + jar.getName());
getLogger().severe("Unable to load module from file: " + jar.getName());
if (debug) {
getLogger().severe("Error log:");
e.printStackTrace();