public class IslandChangeRolePrivilegeEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeRolePrivilegeEvent(Island island,
SuperiorPlayer superiorPlayer,
PlayerRole playerRole)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the privilege to the other player.
|
PlayerRole |
getPlayerRole()
Get the role that the privilege was changed for.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandChangeRolePrivilegeEvent(Island island, @Nullable SuperiorPlayer superiorPlayer, PlayerRole playerRole)
island
- The island that the privilege was changed in.superiorPlayer
- The player that changed the privilege to the other role.
If null, the privilege was changed by the console.playerRole
- The role that the privilege was changed for.@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