How to make a particle or effect only visible to one player?

Discussion in 'Spigot Plugin Development' started by DeadlyBlaze, Jul 12, 2015.

  1. Hi there, how would I make it so that an particle or effect is only visible to the player that it's been given to using the ParticleEffect util found here or using the code below?

    Code (Text):
                player.getWorld().playEffect(player.getLocation().add(0.0D, 0.8D, 0.0D), Effect.STEP_SOUND, Material.REDSTONE_BLOCK);
    This might be a stupid question but like for performing the sound to a player would I not include .getWorld()?
  2. Instead of calling World#playEdfect () use Player#playEffect () :)
  3. Though so.