diff --git a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java index 29db58b..abded95 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java +++ b/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java @@ -372,7 +372,7 @@ public final class LocalExpansionManager implements Listener { public CompletableFuture<@NotNull List<@Nullable Class>> findExpansionsOnDisk() { File[] files = folder.listFiles((dir, name) -> name.endsWith(".jar")); if(files == null){ - return CompletableFuture.supplyAsync(Collections::emptyList); + return CompletableFuture.completedFuture(Collections.emptyList()); } return Arrays.stream(files)