public class IslandChangeBankLimitEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeBankLimitEvent(SuperiorPlayer superiorPlayer,
Island island,
java.math.BigDecimal bankLimit)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getBankLimit()
Get the new bank limit of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the bank limit of the island.
|
boolean |
isCancelled() |
void |
setBankLimit(java.math.BigDecimal bankLimit)
Set the new bank limit for the island.
|
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandChangeBankLimitEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, java.math.BigDecimal bankLimit)
superiorPlayer
- The player that changed the bank limit of the island.
If set to null, it means the limit was changed by console.island
- The island that the bank limit was changed for.bankLimit
- The new bank limit of the island@Nullable public SuperiorPlayer getPlayer()
public java.math.BigDecimal getBankLimit()
public void setBankLimit(java.math.BigDecimal bankLimit)
bankLimit
- The new bank limit to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable