Making a Player Invisible

Discussion in 'Plugin Development' started by BungeeTheCookie, Jun 14, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    BungeeTheCookie

    I was wondering how you can make a player invisible without the potion effect bubbles, and whenever a player holds an item in his hand, falls on the ground from a high distance and causes the particles to display, and other miscellaneous things not happen. I would to make it impossible for a Player to detect if a spectator is there, and if the spectator stands in front of them, the player is still able to break blocks, etc.
     
  2. Offline

    Deleted user

    Code:java
    1.  
    2. for (Player p : Bukkit.getServer().getOnlinePlayers()) {
    3. if (p != player)
    4. p.hidePlayer(player);
    5. }
    6.  


    Player being the person you want to hide.

    something along those lines.
     
  3. Offline

    bdubz4552

Thread Status:
Not open for further replies.

Share This Page