mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-26 01:51:40 +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() {
|
public static Iterable<Template> getTemplates() {
|
||||||
return Arrays.asList(getDirectory().list()).stream().map(f -> new File(getDirectory(), f))
|
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());
|
.map(f -> byName(Files.getNameWithoutExtension(f.getName()))).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user