this.nextMapId = nextMapId;
}
@Override
public void execute(Player player) throws ServiceException {
OverworldService overworldService = (OverworldService) PlayerManager.getService("overworld");
Map nextMap = overworldService.getMap(nextMapId);
Entity nextDoor = nextMap.getEntity(mapId);
Location nextLocation = nextDoor.getLocation().clone();
nextLocation.setWidth(1);
nextLocation.setHeight(1);
nextLocation.setDirection("down");
overworldService.teleportPlayer(player, nextLocation);
}