Class PlayerHealEvent
java.lang.Object
com.welcome234.pluginsystem.events.PlayerHealEvent
Called when a player heals
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the amount of health this player has healed byGets the player who has healedbooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
PlayerHealEvent
-
-
Method Details
-
getPlayer
Gets the player who has healed- Returns:
- Player instance
-
getHealAmount
public int getHealAmount()Gets the amount of health this player has healed by- Returns:
- Health healed
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this event- Parameters:
cancelled- Whether cancelled
-