public class IslandBankDepositEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandBankDepositEvent(SuperiorPlayer superiorPlayer,
Island island,
java.math.BigDecimal amount)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAmount()
Get the amount that was deposited.
|
java.lang.String |
getFailureReason()
Get the failure reason of the transaction.
|
SuperiorPlayer |
getPlayer()
Get the player who deposited the money.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setFailureReason(java.lang.String failureReason)
Set a failure reason for the transaction.
|
getHandlerList, getHandlers, getIsland
public IslandBankDepositEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, java.math.BigDecimal amount)
superiorPlayer
- The player who deposited the money.island
- The island that the money was deposited to.amount
- The amount that was deposited.@Nullable public SuperiorPlayer getPlayer()
public java.math.BigDecimal getAmount()
@Nullable public java.lang.String getFailureReason()
public void setFailureReason(@Nullable java.lang.String failureReason)
failureReason
- The new failure reason to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable