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 c2e3289f..ce30f2d8 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 @@ -259,7 +259,10 @@ public class PluginManager Preconditions.checkNotNull( folder, "folder" ); Preconditions.checkArgument( folder.isDirectory(), "Must load from a directory" ); - for ( File file : folder.listFiles() ) + File[] files = folder.listFiles(); + Arrays.sort( files ); + + for ( File file : files ) { if ( file.isFile() && file.getName().endsWith( ".jar" ) ) {