Plugin Help What does the method hidePlayer(Player) actually do?

Discussion in 'Plugin Help/Development/Requests' started by rsat4life, Mar 24, 2017.

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

    rsat4life

    just what the title says, sorry for the basic question, I simply can't find the proper documentation or reference for the method.
     
  2. Offline

    Zombie_Striker

    @rsat4life
    It hides an individual player from the referenced player. So, if you want to hide player1 from player 2, you would use Player2#hidePlayer(Player1);
     
  3. Offline

    rsat4life

    @Zombie_Striker
    right, but does it hide them from seeing this person? hitting this person? being seen on the tab list by this person?
     
  4. Offline

    Zombie_Striker

    @rsat4life
    1. Yes.
    2. It does prevent them from hitting the other player. (or, atleast it should. Some Anti-cheat plugins may cause the other player to be hit)
    3. They should still exist on the tablist. Have not tested it.
     
  5. Offline

    mehboss

    I've wondered another question myself.. Does it prevent hostile mobs from being attracted to you?
     
  6. Offline

    Zombie_Striker

    @mehboss
    No. It only sends the destroy player packet to that single player. The server still treats the player as though they are there (because, to that client and everyone else who sees him, he is still there)
     
Thread Status:
Not open for further replies.

Share This Page