Class PlayerHealEvent

java.lang.Object
com.welcome234.pluginsystem.events.PlayerHealEvent

public class PlayerHealEvent extends Object
Called when a player heals
  • Constructor Details

    • PlayerHealEvent

      public PlayerHealEvent(String playername, int healAmount)
  • Method Details

    • getPlayer

      public Player 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