Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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); 
}
 
PREVIOUS NEXT
Tagged: #spigot #heal #player
ADD COMMENT
Topic
Name
7+7 =