From 247a40b65f463d8a8fe805231b5b182ed803645f Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 12 Jul 2018 16:35:32 -0700 Subject: [PATCH] Fix /lp search for groups when using separated file storage (#1094) --- .../common/storage/dao/file/SeparatedConfigurateDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/SeparatedConfigurateDao.java b/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/SeparatedConfigurateDao.java index edac91aa..aa1c0a20 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/SeparatedConfigurateDao.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/dao/file/SeparatedConfigurateDao.java @@ -312,7 +312,7 @@ public class SeparatedConfigurateDao extends AbstractConfigurateDao { @Override public List> getGroupsWithPermission(Constraint constraint) throws Exception { List> held = new ArrayList<>(); - try (Stream stream = Files.list(getDirectory(StorageLocation.USER))) { + try (Stream stream = Files.list(getDirectory(StorageLocation.GROUP))) { stream.filter(getFileTypeFilter()) .forEach(file -> { String fileName = file.getFileName().toString();