spigot respawn player location

Java
@EventHandler
public void playerRespawn(PlayerRespawnEvent e) {
	e.setRespawnLocation(new Location(world, x, y, z, yaw, pitch));
}
Source

Also in Java: