public class IslandRemoveBlockLimitEvent extends IslandEvent implements org.bukkit.event.Cancellable
island| Constructor and Description |
|---|
IslandRemoveBlockLimitEvent(SuperiorPlayer superiorPlayer,
Island island,
Key block)
The constructor of the event.
|
| Modifier and Type | Method and Description |
|---|---|
Key |
getBlock()
Get the block that the limit was removed for.
|
SuperiorPlayer |
getPlayer()
Get the player that removed the block limit.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIslandpublic IslandRemoveBlockLimitEvent(@Nullable
SuperiorPlayer superiorPlayer,
Island island,
Key block)
superiorPlayer - The player that removed the block limit of an island.
If set to null, it means the limit was removed via the console.island - The island that the block limit was removed for.block - The block that the limit was removed for.@Nullable public SuperiorPlayer getPlayer()
public Key getBlock()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancelled)
setCancelled in interface org.bukkit.event.Cancellable