1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Per world inventory.

Discussion in 'Development' started by Muqsit, Jan 26, 2017.

  1. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    What in your opinion would be the best method to make a per-world inventory system.

    I think it would be saving player's inventory in an array, then giving it back on level change.
     
  2. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    Saving it to a config object or saving it to the players NBT itself would be better. That way server restarts are covered and all the data will be retained.
     
    Muqsit likes this.
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Oh, totally forgot about NBTs.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.