Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I use hidePlayer?

Comments in 'Plugin Development' started by XFuryMCPE, Jan 28, 2016.

  1. XFuryMCPE
    Offline

    XFuryMCPE Active Member Plugin Developer

    Joined:
    Jun 19, 2015
    Posts:
    137
    Plugins:
    2
    Minecraft User:
    XFuriousMC
    Haaalp this is a life or death situation, how do I use hidePlayer()? xD
  2. TheDeibo
    Offline

    TheDeibo Notable Member Plugin Developer

    Joined:
    Sep 8, 2014
    Posts:
    692
    Plugins:
    1
    Minecraft User:
    TheDeibo
    maybe looking into the very old versions of vanish plugins?
  3. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    example:
    PHP:
    foreach($this->getServer()->getOnlinePlayers() as $p){
    $player->hidePlayer($p);//player can't see anyone.
    }
    Vaivez66 likes this.
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    PHP:
    $player1->hidePlayer($player2);
    // This will hide $player2 from $player1
    $player1->showPlayer($player2);
    // This will show $player2 for $player1

Share This Page

Advertisement