I have that code, but I can't create file. configFile.getParentFile().mkdirs(); return false.
That works some time ago, I just export my project and that stop work without any reason.
File configFile = new File(ProfessionalWarns.getPluginDataFolder(),
"config.yml");
if (!configFile.exists()) {
configFile.getParentFile().mkdirs();
forceConfigUpdate = true;
}
All class (that code for bukkit plugin): http://pastebin.com/hTPetAxu