public class IslandChangeWorthBonusEvent extends IslandEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
IslandChangeWorthBonusEvent.Reason
The reason for changing the worth bonus.
|
island
Constructor and Description |
---|
IslandChangeWorthBonusEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandChangeWorthBonusEvent.Reason reason,
java.math.BigDecimal worthBonus)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the worth bonus.
|
IslandChangeWorthBonusEvent.Reason |
getReason()
Get the reason for changing the worth bonus.
|
java.math.BigDecimal |
getWorthBonus()
Get the new worth bonus of the island.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setWorthBonus(java.math.BigDecimal worthBonus)
Set the new worth bonus for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeWorthBonusEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, IslandChangeWorthBonusEvent.Reason reason, java.math.BigDecimal worthBonus)
superiorPlayer
- The player that changed the worth bonus of the island.
If set to null, it means the bonus was changed by console.island
- The island that the worth bonus was changed for.reason
- The reason for changing the worth bonus.worthBonus
- The new worth bonus of the island@Nullable public SuperiorPlayer getPlayer()
public IslandChangeWorthBonusEvent.Reason getReason()
public java.math.BigDecimal getWorthBonus()
public void setWorthBonus(java.math.BigDecimal worthBonus)
worthBonus
- The new worth bonus to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable