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