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
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
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
https://github.com/pmmp/PocketMine-...tmine/event/entity/EntityLevelChangeEvent.php PHP: $player->getInventory()->clearAll();