Java w/ JDA Best way to have configurable data?

Discussion in 'Spigot Plugin Development' started by squareluck, Dec 2, 2019.

  1. Hello Spigot, this is a little of a far reacher, but I am trying to figure out what the best way to store data is. I was looking at snake yml, but it seems overly extra. (I guess I’ve gotten to used to the fancy spigot yml api). Would Json be a better alternative? Just to be clear this is not using the spigot api so I cannot use any of the spigot yml methods. Any suggestions would be appreciated!

    Edit: Basically, with SnakeYml, you have to use secondary classes to make nested data types. I’m wondering if there is a way around this. Because that’s just a lot of data.
  2. I'd recommend using a database or JSON serialisation.
  3. Maybe Json + commands to configure since it’s not the most readable file?
  4. Considering that this will only be used by server admins, I don't think JSON is a bad option. As you said, you could also consider commands.
  5. JSON is a good solution, otherwise YAML. Both are pretty readable and straight-forward.