Looking at the link from a Team Leader, it states that Sponge offers a “Configurate” rather than Bukkit’s standard File and FileConfiguration.
In reality, all I want to accomplish is saving a text file per player with information, where I can then save the files in a folder to fetch again later.
There doesn’t seem to be much documentation on this, and the only tutorials I can find are from 2015 where they only cover defaultConfig and whatnot.
The way that Sponge handles configuration files allows for multiple types of files that are able to be abstracted by the API. From what I remember, the file types it supports are HOCON (Preferred for configuration), JSON, and YAML. So if you want to use YAML, you still can, and I believe the documentation goes over how to load a .yml file as a config.
However, if you just want the directory so that you can store player data and such, that can be done with
That Path object represents the config directory where your config would normally be stored, you can use java.nio classes to write files into that directory
As I said, the configDir variable that I gave in my first example would be the equivalent of Bukkit’s getDataFolder() (Because Sponge doesn’t give you an abstract class to inherit from, most fields like that are given to you via injection at runtime)