Using the player.damage to negate armor

Discussion in 'Plugin Development' started by MistPhizzle, Nov 11, 2013.

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

    MistPhizzle

    Hello, how would I use the player.damage() method and have it negate armor? Just do raw damage on the victim?
     
  2. Offline

    The_Doctor_123

    So you do or don't want armor to be affected? If not, you can use the setHealth method.
    Code:java
    1. player.setHealth(player.getHealth() - <Whatever Amount>);
     
Thread Status:
Not open for further replies.

Share This Page