public class IslandUncoopPlayerEvent extends IslandEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
IslandUncoopPlayerEvent.UncoopReason |
island
Constructor and Description |
---|
IslandUncoopPlayerEvent(Island island,
SuperiorPlayer player,
SuperiorPlayer target,
IslandUncoopPlayerEvent.UncoopReason uncoopReason)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player who cooped the target, if exists.
|
SuperiorPlayer |
getTarget()
Get the player that will no longer be coop.
|
IslandUncoopPlayerEvent.UncoopReason |
getUncoopReason()
Get the reason for the action.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandUncoopPlayerEvent(Island island, SuperiorPlayer player, SuperiorPlayer target, IslandUncoopPlayerEvent.UncoopReason uncoopReason)
island
- The island that the leadership of it is transferred.player
- The player who cooped the target, if exists.target
- The player that will no longer be coop.uncoopReason
- The reason for the action.@Nullable public SuperiorPlayer getPlayer()
public SuperiorPlayer getTarget()
public IslandUncoopPlayerEvent.UncoopReason getUncoopReason()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable