public static long pasteSchematic(final World world, final Location loc, Schematic schematic) {
		final int i = 5;
		final short[] blocks = schematic.getBlocks();
		final byte[] blockData = schematic.getData();

		final short length = schematic.getLenght();
		final short width = schematic.getWidth();
		short height = schematic.getHeight();
		
		for (int y = 0; y < height; y++) {
			final int fY = y;
			for (int x = 0; x < width; x++) {
				final int fX = x;
				for (int z = 0; z < length; z++) {
					final int fZ = z;
							Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("CrashOfClans"),new Runnable(){
								@SuppressWarnings("deprecation")
								public void run(){
									int index = fY * width * length + fZ * width + fX;
									Block block = new Location(world, fX + loc.getX(), fY + loc.getY(), fZ + loc.getZ()).getBlock();
									block.setTypeIdAndData(blocks[index], blockData[index], false);
								}
							},i * x + i * y + i * z);

				}
			}
		}
		return i * width + i * height + i * length;
	}