A simple way to do this.
1. Place nether portal block in hole.
2. Place end portal block in hole.
3. Have buttons that tp players to respective holes.
4. Put a pressure plate or other redstone with commandblock
5. Tp to whereever you want in said world.
EDIT: /world seems to work with commandblocks. Try that.