Solved Setting Max Health

Discussion in 'Plugin Development' started by CoderMusgrove, Nov 17, 2013.

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

    CoderMusgrove

    When increasing the max health of a player, it seems that it is actually adding a multiplier for damage. I can tell because getting punched takes 1 to 1.5 hearts of damage from me. How would I get rid of this multiplier?

    EDIT: Also, when the player is healing while standing, I will receive 1 to 1.5 hearts.

    Here is the code that changes the max health:

    Code:
    p.setHealthScale(50d);
    p.setHealthScaled(true);
    EDIT::SOLVED!
    Wow, I failed. I forgot:
    Code:
    p.setMaxHealth(50d);
     
Thread Status:
Not open for further replies.

Share This Page