public class IslandChangeBlockLimitEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeBlockLimitEvent(SuperiorPlayer superiorPlayer,
Island island,
Key block,
int blockLimit)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
Key |
getBlock()
Get the block that the limit was changed for.
|
int |
getBlockLimit()
Get the new block limit of the block.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the block limit.
|
boolean |
isCancelled() |
void |
setBlockLimit(int blockLimit)
Set the new block limit of the block.
|
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandChangeBlockLimitEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, Key block, int blockLimit)
superiorPlayer
- The player that changed the block limit of an island.
If set to null, it means the limit was changed via the console.island
- The island that the block limit was changed for.block
- The block that the limit was changed for.blockLimit
- The new block limit of the block@Nullable public SuperiorPlayer getPlayer()
public Key getBlock()
public int getBlockLimit()
public void setBlockLimit(int blockLimit)
blockLimit
- The new block 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