Jump to content

Getting player health and max health


Guru_Fraser

Recommended Posts

I am using this method to format my health and max health:

 s = "" + this.formatExp(mc.thePlayer.func_110139_bj(), mc.thePlayer.func_110138_aP()) + " / " + mc.thePlayer.func_110138_aP();

 

(formatExp is a custom method that just colours stuff)

 

But this is intended for a Bukkit server, and I am just wondering; is it possible to get the proper health and max health? Because bj() returns 0.0 and aP() always returns 20. Even though on the server I had 100 HP and 100 max hp....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.