Commands and Configurations?

So I’m sure I could figure these out if I spent a little bit of time on it, but there’s probably a better way to do it than the way I might. How would you create a command and how would you setup configuration files?

This is an example plugin that shows how to register a command:

Right now there is no official information how to work with configs. I found this:

The last 2 methods of the pre-init event:

Looking at the command example right now, it seems a bit outdated.

i noticd too, the docs not been updated recently