I have got class:

```
class Region{
String name;
List<String> BlockPlayers = new ArrayList<>();
}

```

Then I made a List of objects in my program like this

```
List<Region> playersRegions = new ArrayList<>();

```

Now I need to make a function that will pass objects from playersRegions list to config file. Then I need to make function that will load everything from config file and pass to playersRegions list

I have made something like this

```
private void save_regions_inConfig()
{
getConfig().set("locs", playersRegions);
saveConfig();
}

```

But I have no idea how to load it from file to playersRegions. I just want to keep everything after I close the program and open it once more.