Solved Confusion over proper use of Player.hidePlayer(Player)

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

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

    bdubz4552

    The JavaDoc states that this:
    Now, even with the parameter definition:
    This is kinda ambiguous and doesn't quite make sense to me. So could someone please tell me which way this works? In the example:
    Code:java
    1. player_1.hidePlayer(player_2);

    Does this make player_1 vanish in the eyes of player_2? Or does this make player_2 vanish in the eyes of player_1?
     
  2. Offline

    AoH_Ruthless

    bdubz4552
    player_2 will be hidden from player_1
     
  3. Offline

    chasechocolate

    The parameter is the player for whom you wish to hide from the target. In your case, player_2 will be hidden from player_1.

    EDIT: Ninja'd by AoH_Ruthless
     
    AoH_Ruthless likes this.
  4. Offline

    bdubz4552

    chasechocolate likes this.
Thread Status:
Not open for further replies.

Share This Page