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