// Further handle teleportation to worlds
if (enteredWorld != null) {
if (MyWorlds.allowPersonalPortals) {
// Personal portals - which means a portal may have to be created on the other end
// To find out where to place this portal, compare the from and to environments
Environment oldEnvironment = entity.getWorld().getEnvironment();
Environment newEnvironment = enteredWorld.getEnvironment();
if (newEnvironment == Environment.THE_END) {
// Always use this location of the world as destination
// Anything else will cause internal logic to break
destinationLoc = new Location(enteredWorld, 100, 50, 0);
useTravelAgent = true;