How would I create custom configurations - Java Minecraft Plugin : never really worked with custom .yml files before. I know, I know, dynamic is better and I'll agree. I have not coded in a very long time, and I'm getting back into it. If someone could provide assistance on my issue, that'd be great. Thanks! :)

So, I basically made a little system to create a custom .yml file every time a player joins with some default values. Here's what I'm using to create the custom configs: https://hastebin.com/wibikegawa.cpp
It does everything perfectly fine. But, when attempt to write to it, it creates a blank file. Code I'm using to write: https://hastebin.com/ovuxuzuzim.cpp

Thanks! :)
Some debugging to the console I did: https://hastebin.com/aveyegunen.vbs