public void copyFromJar(String name) { File configFile = new File(sdl.getStoragePath(), name + ".yml"); if (!configFile.exists()) { configFile.getParentFile().mkdirs(); sdl.getFileTools() .copyFileFromJar(name + ".yml", sdl.getStoragePath() + File.separator + name + ".yml"); } }