Need help with inventories

Discussion in 'Plugin Development' started by Ahniolator, Sep 21, 2011.

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

    Ahniolator

    I need to save and load player inventories (and armor) from a file, and I'm have no clue how to get do it because inventories are not serializable. Does anyone know a way to do this?
     
  2. Offline

    andersonhc

    I think (almost) nothing in bukkit is serializable.
    The best I can think is get the ItemStack[] and save, line by line, the itemIDs and data values so you can build it back.
     
  3. Offline

    Ahniolator

    Now THAT doesn't sound like very much fun... Actually, it's exactly what I thought I would end up needing to do. I just want to find out if there are any easier ways to deal with that problem.
     
Thread Status:
Not open for further replies.

Share This Page