Class StrengthChangeEvent

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

public class StrengthChangeEvent extends Object
Called when a player changes strength
  • Constructor Details

    • StrengthChangeEvent

      public StrengthChangeEvent(String playername, int strength)
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who changed strength
      Returns:
      Player instance
    • getNewStrength

      public int getNewStrength()
      Gets the strength this player has changed to
      Returns:
      Strength amount
    • 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