It do not support YAML comments though. This is important feature, I check if it is possible to use without this and just copy file over. I do not need to write to file ever, so they should stay. Unless I add command to write to config. SpongePowered Configurate is also adding YAML Comment support with this Pull Request https://github.com/SpongePowered/Configurate/pull/175. I do not know how soon this comes, I see and wait.
This is very ugly. https://github.com/laymanuel/GravityControl/blob/main/src/main/java/io/github/laymanuel/gc/GravityControlConfig.java#L15-L45
Because of this, I hear about SpongePowered Configurate https://github.com/SpongePowered/Configurate which can do better and automatically, all of this.
It do not support YAML comments though. This is important feature, I check if it is possible to use without this and just copy file over. I do not need to write to file ever, so they should stay. Unless I add command to write to config. SpongePowered Configurate is also adding YAML Comment support with this Pull Request https://github.com/SpongePowered/Configurate/pull/175. I do not know how soon this comes, I see and wait.