Use proper .setHealth(player.getMaxHealth) throughout ALL
See 366b5c20a9b23d7496050c210e0fac11f6f10351 & 9f7fa90618ffad6174e1cd0e1fde0335d55ab06a