Code: Reader defConfigStream = new InputStreamReader(plugin.getResource("config.yml")); if (defConfigStream != null) { YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream); ConfigConfiguration.setDefaults(defConfig); } try { ConfigConfiguration.save(ConfigFile); } catch (IOException e) { plugin.getLogger().severe("Could not save the config file to the disk!"); } This saves only the header, why?
Why would you need to do that? Just set the onEnable to saveConfig and if its empty, set the values you want and then save it again. There should be no reason you would need to export the config.