Fixed the fix of the fix of javaplugin.getResource

This commit is contained in:
Nathan Adams
2011-11-22 00:03:16 +00:00
parent e45a928b79
commit 146bc369f5

View File

@@ -153,6 +153,11 @@ public abstract class JavaPlugin implements Plugin {
try {
URL url = getClassLoader().getResource(filename);
if (url == null) {
return null;
}
URLConnection connection = url.openConnection();
connection.setUseCaches(false);
return connection.getInputStream();