Store Inventory in Config

Discussion in 'Spigot Plugin Development' started by realfnogen, May 25, 2018.

  1. Hi, what is the best way to store an Inventory in a Config file? (yaml)

    Is it ok to just do "config.set("path", player.getInventory());" ?
    It serializes itself. But I don't know if the config can get too big if I have to store about 1000 Inventories?
  2. If you have to store 1000+ inventorys I recommend having each inventory as it's own file, and if needed, segregated by folders. And that method is fine as long as you know how to grab it later.
  3. Why are you using configs and not a database
  4. Why should I? ,_,
    • Winner Winner x 1