mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-25 01:21:24 +01:00
Fix template#getTemplates()
This commit is contained in:
parent
49036e1967
commit
e4fba63408
@ -152,7 +152,7 @@ public class Template {
|
||||
|
||||
public static Iterable<Template> getTemplates() {
|
||||
return Arrays.asList(getDirectory().list()).stream().map(f -> new File(getDirectory(), f))
|
||||
.filter(f -> !f.isDirectory() && Files.getFileExtension(f.getName()).equals(".yml"))
|
||||
.filter(f -> !f.isDirectory() && Files.getFileExtension(f.getName()).equals("yml"))
|
||||
.map(f -> byName(Files.getNameWithoutExtension(f.getName()))).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user