diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 0f16347d..684f4141 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -177,7 +177,7 @@ public class PluginManager for (File file : folder.listFiles()) { - if (file.getName().endsWith(".jar")) + if (file.isFile() && file.getName().endsWith(".jar")) { try {