diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index 1ae00aa0c0..e561eec1b1 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -106,7 +106,8 @@ final class PluginClassLoader extends URLClassLoader { if (result != null) { JavaPlugin provider = ((PluginClassLoader) result.getClassLoader()).plugin; - if (!description.getDepend().contains(provider.getName()) + if (provider != plugin + && !description.getDepend().contains(provider.getName()) && !description.getSoftDepend().contains(provider.getName()) && !provider.getDescription().getLoadBefore().contains(description.getName())) {