Sorry, quick update because I broke something so I mind as well just add something:
2.3 update:
+ Accidentally broke another part of the mod where it always sent the HP but not the bar, which is now fixed.
+ Developers can use
Player::sendHealthData(%player, %invincible) (Same for
GameConnection::sendHealthData(%client, %invincible), %invincible is where it tells the client they are invincible. (Last update was able to do this but now you can send invincible variables to the client, it will undo when they get damaged)
When %invincible is sent to the client correctly
If you send the data again with %invincible being 0 it will go back to what the player's health is again; will also change back when damaged.