mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-22 00:01:32 +01:00
Fix modules not loading. Bump version number
This commit is contained in:
parent
af30817918
commit
88c892fde7
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -614,9 +614,9 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
|
||||
try {
|
||||
|
||||
@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();
|
||||
|
Loading…
Reference in New Issue
Block a user