Multi Worlds - Multi Inventories?

Discussion in 'Plugin Development' started by Raz, Mar 22, 2011.

Thread Status:
Not open for further replies.
  1. Soo, I've got a basic plugin setup which allows users to teleport between the worlds -
    pvp and build with the commandos /pvp and /build.
    They spawn in a world called world ( Will set build as default world later ).
    Althought, When i teleport between the world world and pvp now, i keep the inventory from world world, I want to reload the player.dat from pvp world(Not even generated) - Is there any way to do this?
    (Im using the teleportTo(location); to teleport between worlds)
     
  2. Offline

    nickguletskii

    What I did was make a serializable inventory class and copy into it/out of it when I need to.
     
  3. Aah smart! i didn't think of that :)

    Will do! Thanks for your suggestion :p
     
  4. Offline

    nickguletskii

    Please note that you shouldn't add nulls or air because that crashes/hangs up the client.
     
Thread Status:
Not open for further replies.

Share This Page