public class IslandCoopPlayerEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandCoopPlayerEvent(Island island,
SuperiorPlayer player,
SuperiorPlayer target)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player who cooped the target.
|
SuperiorPlayer |
getTarget()
Get the player that will be cooped.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandCoopPlayerEvent(Island island, SuperiorPlayer player, SuperiorPlayer target)
island
- The island that the leadership of it is transferred.player
- The player who cooped the target.target
- The player that will be cooped.public SuperiorPlayer getPlayer()
public SuperiorPlayer getTarget()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable