Solved Configuration Section doesn't delete

Discussion in 'Spigot Plugin Development' started by cayote20, Mar 24, 2020.

Thread Status:
Not open for further replies.
  1. To delete a configuration section I use the following code:
    Code (Java):
    plugin.getConfig().set("Fractions." + fractionID, null); plugin.saveConfig();
    But it doesn't works, I don't have any errors/exceptions.
     
  2. drives_a_ford

    Moderator

    Are you sure this piece of code is reached?

    Have you tried adding debug output to make sure fractionID refers to what you think it does?
     
  3. I solved the problem, thanks. It was my fault, I casted to fractionID a wrong value...
     
Thread Status:
Not open for further replies.