Saving/Loading Inventory to/from File

Discussion in 'Plugin Development' started by FletchTech90, Jun 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    FletchTech90

    Hi, I'm trying to find out how to save the Inventory to a FileConfiguration. I have the basic code, I just need help on my getting the ItemStacks and saving, and later, loading each one back into the Inventory.
     
  2. Offline

    Dubehh

  3. Offline

    FletchTech90

    Dubehh Aw, darn, it's a YouTube video. :p I'll watch it later. Thanks!
     
  4. Offline

    FletchTech90

    Alright, I think I might be able to do this... let me see...
     
  5. Offline

    FletchTech90

    Nope, would
    Code:java
    1. Configuration.players.set(
    2. "players." + p.getUniqueId().toString() + ".inventory." + num,
    3. <ItemStack Variable>.toString()
    4. );
    work?
    And how would I load it?
     
  6. Offline

    mazentheamazin

Thread Status:
Not open for further replies.

Share This Page