new BukkitRunnable() { @Override public void run() { Vector dist = player.getEyeLocation().getDirection(); dist.multiply(-0.5); Location location=player.getEyeLocation().add(dist).subtract(0,0.5,0); Map particle = particles.getParticles(location,25,location.getYaw()); for(Location spot:particle.keySet()) { player.sendMessage(spot.toString()); Color color=particle.get(spot); //spawn particle at location "spot" with color "color" player.getWorld().spawnParticle(Particle.REDSTONE,spot,1, new Particle.DustOptions(color, 1)); } } }.runTaskTimerAsynchronously(plugin, 1, 5);