Make some entities and players invisible to others

Discussion in 'Spigot Plugin Development' started by Dragonphase, Jun 14, 2016.

  1. Is there any way to render an entity or player invisible to some players, but not others?
     
  2. player.hidePlayer(target);
    player.canSee(target);
    player.showPlayer(target);
     
  3. Use this for players,

    As for Entities, you could send the packet PlayOutDestroy, this will 'destroy' the entity to the player receiving the packet
     
  4. Vanish plugin should work for players.
     
  5. Thanks. These will both be useful.

    The whole reason for posting in "Plugin Development" was so that I could find a way to do it myself in my own plugin, not use another plugin.