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