Solved Custom Health = insta dead?

Discussion in 'Spigot Plugin Development' started by aufgosh, Feb 22, 2020.

  1. So,

    i tried setting a custom health of 530. But as soon as i get hit i insta die?

    i did it with the Attribute method:

    Code (Text):
                healthAttribute.setBaseValue(20 + config.getInt(p.getName() + "." + "stamina")*3);
                p.setHealth(20 + config.getInt(p.getName() + "." + "stamina")*3);

  2. How much damage is that husk doing???

    Just kidding, can we get more of the method in which this is occuring?
    • Like Like x 1
  3. Hey,

    i've completly restarted my pc now (which i dont know why) but it worked? Before sometimes i got insta killed or my Hp set back to 20 which seems really weird to me.. if this should occure again i will inform you, but thanks for your willingless to help anyway :)) gave you a like
  4. No problem! Feel free to reach out if you need help!
    • Like Like x 1
    • Like Like x 1