public class IslandRemoveRoleLimitEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRemoveRoleLimitEvent(SuperiorPlayer superiorPlayer,
Island island,
PlayerRole playerRole)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that removed the role-limit.
|
PlayerRole |
getPlayerRole()
Get the role that its limit was removed.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandRemoveRoleLimitEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, PlayerRole playerRole)
superiorPlayer
- The player that removed a role-limit from an island.
If set to null, it means the limit was removed via the console.island
- The island that the role-limit was removed from.playerRole
- The role that its limit was removed.@Nullable public SuperiorPlayer getPlayer()
public PlayerRole getPlayerRole()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable