public class IslandChangePlayerPrivilegeEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangePlayerPrivilegeEvent(Island island,
SuperiorPlayer superiorPlayer,
SuperiorPlayer privilegedPlayer,
boolean privilegeEnabled)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the privilege to the other player.
|
SuperiorPlayer |
getPrivilegedPlayer()
Get the player that the privilege was changed for.
|
boolean |
isCancelled() |
boolean |
isPrivilegeEnabled()
Check whether the privilege was enabled to
getPrivilegedPlayer() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandChangePlayerPrivilegeEvent(Island island, SuperiorPlayer superiorPlayer, SuperiorPlayer privilegedPlayer, boolean privilegeEnabled)
island
- The island that the privilege was changed in.superiorPlayer
- The player that changed the privilege to the other player.privilegedPlayer
- The player that the privilege was changed for.privilegeEnabled
- Whether the privilege was enabled or disabled for the player.public SuperiorPlayer getPlayer()
public SuperiorPlayer getPrivilegedPlayer()
public boolean isPrivilegeEnabled()
getPrivilegedPlayer()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable