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.
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.