public class IslandLeaveProtectedEvent extends IslandLeaveEvent
IslandLeaveEvent.LeaveCause
island
Constructor and Description |
---|
IslandLeaveProtectedEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandLeaveEvent.LeaveCause leaveCause,
org.bukkit.Location toLocation)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getCause, getPlayer, getTo
getIsland
public IslandLeaveProtectedEvent(SuperiorPlayer superiorPlayer, Island island, IslandLeaveEvent.LeaveCause leaveCause, org.bukkit.Location toLocation)
superiorPlayer
- The player who left the island's protected area.island
- The island that the player left.leaveCause
- The cause of leaving the island.toLocation
- The location the player will be at after leaving.public static org.bukkit.event.HandlerList getHandlerList()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
isCancelled
in class IslandLeaveEvent
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
setCancelled
in class IslandLeaveEvent
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class IslandEvent