public class IslandChangeBorderSizeEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeBorderSizeEvent(SuperiorPlayer superiorPlayer,
Island island,
int borderSize)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
int |
getBorderSize()
Get the new border size of the island.
|
SuperiorPlayer |
getPlayer()
Get the player that changed the border-size of the island.
|
boolean |
isCancelled() |
void |
setBorderSize(int borderSize)
Set the new border size for the island.
|
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandChangeBorderSizeEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, int borderSize)
superiorPlayer
- The player that changed the border size of the island.
If set to null, it means the limit was changed by console.island
- The island that the border size was changed for.borderSize
- The new border size of the island@Nullable public SuperiorPlayer getPlayer()
public int getBorderSize()
public void setBorderSize(int borderSize)
borderSize
- The new border size to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable