Solved Override saves in a yml file

Discussion in 'Spigot Plugin Development' started by JohnyTheCarrot, May 1, 2017.

  1. So I've been making a plugin which saves an arraylist in a yml file, it saves without a problem.
    What I need to do is be able to override the save data.

    for example:
    Code (Text):
      - 15639290-6982-abc-defg-12345678978
    When you unblock a player it should remove the UUID of the player from the list in the yml file.
    Any way to do this?
  2. I think you can just get the list and remove the UUID from it
    Code (Java):
    List list = getConfig.getList("blocked");
    getConfig().set("blocked", list);
    • Winner Winner x 1
  3. Solved thanks to you mate!