Fixed the fix of the fix of javaplugin.getResource
This commit is contained in:
parent
f1b0b8ebf3
commit
47432229cf
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user