PVP hearts

Discussion in 'Spigot Plugin Development' started by james.boy123, Feb 6, 2015.

  1. How can I show the hearts of the PLayer in ingame chat? I want to use PlayerDeathListener, and if one Player dies, the Person who died gets a message with how many hearts the opponent has left. But with hearts, not with numbers!

    Dave
     
  2. You could get a the value of his life (double) by using the somePlayer.getHealth(); method.
    Then you can simply display a Heart in the chat for each half heart :)
    ❤ <- This is the symbol for the heart. Just copy and paste it ^^
     
    • Like Like x 1