Giving someone the new invisibility effect

Discussion in 'Plugin Development' started by Hoolean, Nov 24, 2012.

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

    Hoolean

    Title says it all!

    Thanks in advance :D
     
  2. Offline

    LukeSFT

    Maybe use set potioneffect or something like this.
     
  3. Offline

    Hoolean

    But there is no PotionEffectType for invisibility! Well there is but it is deprecated :(
     
  4. Offline

    Panjab

    MrBluebear3

    Code:java
    1. player.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, long, long));
     
    CeramicTitan likes this.
  5. Offline

    Hoolean

    It is deprecated!
     
  6. deprated wont always means it wont work
     
  7. Offline

    Hoolean

    Oh good! What does deprecated symbolise then?
     
  8. Offline

    fireblast709

    It actually means you should not use it, but in this case you do not have another choice. Besides, it is in the game so it should just work fine
     
  9. The question is why use the portion effect if we have hidePlayer() in the first place. ^^

    And deprecated normally means marked for removal, so it's not a good idea to use it.
     
  10. Offline

    Hoolean

    Because the potion effect means people can still see particles, what the player is wearing and what they are holding!
     
  11. invisable potion: you can hit him
    hideplayer: you cant hit him

    the potion is better for pvp

    and whit the potion, you can see the stuff the player is holding
     
    MrBluebear3 likes this.
Thread Status:
Not open for further replies.

Share This Page