// Convert them to Location Location flocation = new Location(player.getWorld(), fx, fy, fz); flocation.setYaw(180); Location slocation = new Location(player.getWorld(), sx, sy, sz); slocation.setYaw(180); pL.teleport(flocation); target.teleport(slocation);