diff --git a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index 935992df4..efa22c489 100644 --- a/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -134,10 +134,12 @@ Class findClass(String name, boolean checkGlobal) throws ClassNotFoundExcepti } if (result == null) { - try { - result = launchClassLoader.getClass().getClassLoader().loadClass(name); - } catch (Throwable throwable) { - throw new ClassNotFoundException(name, throwable); + if (checkGlobal) { + try { + result = launchClassLoader.getClass().getClassLoader().loadClass(name); + } catch (Throwable throwable) { + throw new ClassNotFoundException(name, throwable); + } } }