Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by ManagerBoss, Feb 21, 2020.
I want to get a player's remaining damage resistance amount(The gold hearts)?
but I can't find a proper function to get the answer
Golden hearts, or absorption hearts, are not accessible in your current spigot version 1.12.2.
The getter/setter were added in this commit.
As they are simply wrapping calls against the EntityPlayer instance, you could try to use NMS. This way you could access the values in spigot 1.12.2.