[SOLVED] How to send a player into a world

Let say I have two worlds:
world1 and world2

I want to send a Player instance to either a specific area of the world or just the spawn point. How would I do this?

Entity#transferToWorld()

You should look through the java docs in the future.