Solved Player data not saving on new world creation

Discussion in 'Spigot Plugin Development' started by G0ldManPox, May 31, 2016.

  1. So, in attempt to create a world with world creator, I am unable to have the server save player data in that world folder, leading to many issues when players reconnect (such as inventories not saving) .
    Code (Text):
    public World create(){
            String fileName = UUID.randomUUID().toString();
            WorldCreator creator = new WorldCreator(fileName);
            World world = Bukkit.createWorld(creator);
            world.setSpawnLocation(0, world.getHighestBlockYAt(0, 0), 0);
            return world;

    Is there a way I can force the server to save the player data, or should I custom code a player data save class?