spigot heal player
//Set health to maximum(20 = 10 Hearts)
player.setHealth(20);
//Add a specified amount to the current healt
if(player.getHealth() + specifiedAmount <= 20){
player.setHealth(player.getHealth + specifiedAmount);
}
spigot heal player
//Set health to maximum(20 = 10 Hearts)
player.setHealth(20);
//Add a specified amount to the current healt
if(player.getHealth() + specifiedAmount <= 20){
player.setHealth(player.getHealth + specifiedAmount);
}
spigot heal player
if (!player.isDead()) {
try {
player.setHealth(player.getHealth()+hpToHeal);
} catch (Exception exception) { exception.printStackTrace(); }
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us