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): blockedPlayers: - 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?
I think you can just get the list and remove the UUID from it Code (Java): List list = getConfig.getList("blocked"); list.remove(UUID); getConfig().set("blocked", list);