public class IslandChangeLevelBonusEvent extends IslandEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
IslandChangeLevelBonusEvent.Reason
The reason for changing the level bonus.
|
island
Constructor and Description |
---|
IslandChangeLevelBonusEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandChangeLevelBonusEvent.Reason reason,
java.math.BigDecimal levelBonus)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getLevelBonus()
Get the new level bonus of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the level bonus.
|
IslandChangeLevelBonusEvent.Reason |
getReason()
Get the reason for changing the level bonus.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setLevelBonus(java.math.BigDecimal levelBonus)
Set the new level bonus for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeLevelBonusEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, IslandChangeLevelBonusEvent.Reason reason, java.math.BigDecimal levelBonus)
superiorPlayer
- The player that changed the level bonus of the island.
If set to null, it means the bonus was changed by console.island
- The island that the level bonus was changed for.reason
- The reason for changing the level bonus.levelBonus
- The new level bonus of the island@Nullable public SuperiorPlayer getPlayer()
public IslandChangeLevelBonusEvent.Reason getReason()
public java.math.BigDecimal getLevelBonus()
public void setLevelBonus(java.math.BigDecimal levelBonus)
levelBonus
- The new level 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