mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-10 04:48:07 +02:00
Fix /lp search for groups when using separated file storage (#1094)
This commit is contained in:
parent
01ffe6ad5a
commit
247a40b65f
@ -312,7 +312,7 @@ public class SeparatedConfigurateDao extends AbstractConfigurateDao {
|
||||
@Override
|
||||
public List<HeldPermission<String>> getGroupsWithPermission(Constraint constraint) throws Exception {
|
||||
List<HeldPermission<String>> held = new ArrayList<>();
|
||||
try (Stream<Path> stream = Files.list(getDirectory(StorageLocation.USER))) {
|
||||
try (Stream<Path> stream = Files.list(getDirectory(StorageLocation.GROUP))) {
|
||||
stream.filter(getFileTypeFilter())
|
||||
.forEach(file -> {
|
||||
String fileName = file.getFileName().toString();
|
||||
|
Loading…
Reference in New Issue
Block a user