Simply save player position before teleport, ez. It's one code line.
On aCis
player.getSavedLocation().set(player.getX(), player.getY(), player.getZ());
And then you get the coords with
Location loc = player.getSavedLocation();
and teleport
player.teleToLocation(loc.getX(), loc.getY(), loc.getZ(), 0);