MultiInv and multiple servers

Discussion in 'Server & Community Management' started by jtaylor69, Apr 20, 2013.

  1. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Hi all

    Trying to get MultiInv to allow sharing of inventory between survival and pvp however having no luck.
    Has anyone managed to get it working, or am I using the wrong thing entirely?

    MySQL is used (of course)

    Thanks,
    JT
     
  2. Link the folders.

    Otherwise, there are currently no secure way to share inventory between servers.
     
  3. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Thanks for your reply, please explain what you mean by link folders?
     
  4. Sway

    Artist Supporter

    Symlink
     
    • Informative Informative x 1
  5. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Thanks for that.
    I'm guessing link the folders containing the player.dat files would be feasible?
     
  6. Sway

    Artist Supporter

    Yes.
     
  7. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Thanks to the both of you! I will get that sorted in half hour or so :)
     
  8. Sway

    Artist Supporter

    Make a backup before you mess with player data. I'm going to assume you are not very good with linux so you may break things.
     
    • Agree Agree x 1
  9. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    I'm not too bad (running CentOS), learning new things about it every week - but a backup is always recommended anyway :)

    Edit: There may be one problem as the PvP server and Survival server run off different usernames (e.g. mc1 and mc2), would this cause any issues before I go ahead?
     
  10. Sway

    Artist Supporter

    Shouldn't matter.
     
  11. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Thanks again Sway
     
    • Like Like x 1
  12. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Hmm not sure what's up?

    Just executed:
    however, the servers still have their own inventories.
     
  13. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Just installed VNC on my machine and checked out the link via a GUI and it looks like I made the linked folder inside of players so it is now like /players/players
    How stupid am I?!

    Anyway, I have a feeling a lot of players will moan about losing their established inventory.
    Do you think this alternative would be better? :
    - Setup a new world, with just a room that players teleport into
    - Have a symlinked players folder in this world allowing players to retrieve their survival inventories at will.

    I think it would be a win || win situation, but what are your thoughts?
     
  14. Sway

    Artist Supporter

    Ask your players before doing this.
     
  15. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Woops didn't make it as clear as I could have.
    The world would be an additional world and would act as an inventory swap only in addition to the main worlds.
     
  16. Sway

    Artist Supporter

    You should still ask your players.
     
    • Agree Agree x 1
  17. jtaylor69

    jtaylor69 Retired Moderator
    Retired

    Agreed.
    Implemented it, yet still seems to have a completely different inventory. I'm going to dig deeper.
    The appropriate link is there and I've even added both usernames to the read and write perms.
     
    • Like Like x 1