1.12.2 Reload Player's MaxHealth?

Discussion in 'Spigot Plugin Development' started by YangJJune, Feb 25, 2020.

  1. I'm using MythicMobs to make custom items.
    As usual, I made armor, which has extra maxhealth bonus,

    But it has problem now.

    I have to use setMaxHealth() method, by some reason. However I cannot solve problem when I want to restore player's real MaxHealth (player who has maxhealth bonus armor).

    Any Idea?
  2. AttributeInstance#getValue() - AttributeInstance#getBaseValue()
    Also you can iterate all the modifiers one-by-one via AttributeInstance#getModifiers()