Untitled
unknown
java
a year ago
354 B
10
Indexable
File file = new File(String.valueOf(main.getDataDirectory()), "config.yml");
if (!file.exists()) {
try (InputStream in = main.getClass().getClassLoader().getResourceAsStream("config.yml")) {
Files.copy(in, file.toPath());
} catch (IOException e) {
e.printStackTrace();
//System.out.println(e.getMessage());
}
}Editor is loading...
Leave a Comment