damage cause on health and player kill event
This commit is contained in:
parent
9bedf456db
commit
f387c63183
4 changed files with 53 additions and 14 deletions
|
@ -56,9 +56,9 @@ public class SRPlayerUtils {
|
|||
}
|
||||
|
||||
public static void updateActionBar(@NotNull Player p, @NotNull SRPlayer sr) {
|
||||
double maxHealth = sr.getAttribute(Attribute.HEALTH);
|
||||
double health = sr.getHealth();
|
||||
double mana = sr.getAttribute(Attribute.MANA);
|
||||
int maxHealth = (int) sr.getAttribute(Attribute.HEALTH);
|
||||
int health = (int) sr.getHealth();
|
||||
int mana = (int) sr.getAttribute(Attribute.MANA);
|
||||
|
||||
net.kyori.adventure.text.Component text =
|
||||
comp("<red>❤ " + health + "/" + maxHealth + " <blue>❈ " + mana);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue