Solved Amend/Delete data from a YML file

Discussion in 'Spigot Plugin Development' started by MimoBot, Jun 29, 2016.

  1. I want to delete parts of a YML file and make changes to it, I can write new data to it but how do I change existing data? I am using
    Code (Java):
     file.get();
    and
    Code (Java):
     file.save();
    to do my writing, is there a way to amend or delete items from the file?
     
  2. Set(path, value)

    To delete: value is null
     
  3. Thanks, got it. Thats what I thought was, turns out I just was not saving it after setting it.
     
    • Like Like x 1
  4. Mark thread as solved please