public class IslandTransferEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandTransferEvent(Island island,
SuperiorPlayer oldOwner,
SuperiorPlayer newOwner)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getNewOwner()
Get the new owner of the island.
|
SuperiorPlayer |
getOldOwner()
Get the old owner of the island.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandTransferEvent(Island island, SuperiorPlayer oldOwner, SuperiorPlayer newOwner)
island
- The island that the leadership of it is transferred.oldOwner
- The old owner of the island.newOwner
- The new owner of the island.public SuperiorPlayer getOldOwner()
public SuperiorPlayer getNewOwner()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable