public class IslandClearPlayerPrivilegesEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandClearPlayerPrivilegesEvent(Island island,
SuperiorPlayer superiorPlayer,
SuperiorPlayer privilegedPlayer)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that cleared the privileges to the other player.
|
SuperiorPlayer |
getPrivilegedPlayer()
Get the player that the privileges were cleared for.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandClearPlayerPrivilegesEvent(Island island, SuperiorPlayer superiorPlayer, SuperiorPlayer privilegedPlayer)
island
- The island that the privileges were cleared in.superiorPlayer
- The player that cleared the privileges to the other player.privilegedPlayer
- The player that the privileges were cleared for.public SuperiorPlayer getPlayer()
public SuperiorPlayer getPrivilegedPlayer()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable