saveConfig(); removes all linebreaks

Discussion in 'Spigot Plugin Development' started by DecisionsYT, May 31, 2016.

  1. Hey!

    So, In this feature of my plugin. What it does is, when you click on the emerald block, it sets a boolean in the config file to true. When you click on the redstone block, it sets the boolean in the config file to false.

    So, it wasn't working. I then tried, at the end of changing the boolean, I added a saveConfig(); when doing this, the config file lost all line breaks. When trying saveDefaultConfig(); instead, that just did nothing what so ever to the config file. Does anyone know how to keep the line breaks as well as changing the boolean?? I have also tried reloadConfig();


    Thanks.