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

Help With Player World Data

Discussion in 'Help' started by JustSquid, Jun 18, 2021.

  1. JustSquid

    JustSquid Creeper

    Messages:
    4
    GitHub:
    JustSquid
    So I manage a Minecraft server running Pocketmine and I am having trouble seperating the world data from the survival world and spawn. Basically whenever someone gets a sword in the survival world they have it in the spawn as well and I don't know how to change that, I tried using a plugin called PerWorldPlayer by BlockHorizon but it no longer supports the version and I don't expect it to be updated anytime soon as the user is inactive. If anyone knows an alternative solution or any way to fix this the help would be greatly appreciated
     
  2. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Save the items and just clear them on world change event?
    Then just reload it if the player's new world is the same as where the items were saved
     
  3. JustSquid

    JustSquid Creeper

    Messages:
    4
    GitHub:
    JustSquid
    Well I don't have issues with data saving it's just that I want the data separate between different worlds, to reset it manually would be too difficult
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    it wouldn't be.

    Just simply clear their inventory on entity world change...
     
  5. JustSquid

    JustSquid Creeper

    Messages:
    4
    GitHub:
    JustSquid
    How do I do that?
     
  6. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Axon likes this.
  7. JustSquid

    JustSquid Creeper

    Messages:
    4
    GitHub:
    JustSquid
    Thank you!
     
  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.