Class StrengthChangeEvent
java.lang.Object
com.welcome234.pluginsystem.events.StrengthChangeEvent
Called when a player changes strength
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the strength this player has changed toGets the player who changed strengthbooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
StrengthChangeEvent
-
-
Method Details
-
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
-