public class IslandEnterEvent extends IslandEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
IslandEnterEvent.EnterCause
Used to determine the cause of entering.
|
island
Constructor and Description |
---|
IslandEnterEvent(SuperiorPlayer superiorPlayer,
Island island,
IslandEnterEvent.EnterCause enterCause)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getCancelTeleport()
Get the location the player would be teleported if the event is cancelled.
|
IslandEnterEvent.EnterCause |
getCause()
Get the cause of entering into the island.
|
SuperiorPlayer |
getPlayer()
Get the player who entered to the island's area.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setCancelTeleport(org.bukkit.Location cancelTeleport)
Set the location the player would be teleported if the event is cancelled.
|
getHandlerList, getHandlers, getIsland
public IslandEnterEvent(SuperiorPlayer superiorPlayer, Island island, IslandEnterEvent.EnterCause enterCause)
superiorPlayer
- The player who entered to the island's area.island
- The island that the player entered into.enterCause
- The cause of entering into the island.public SuperiorPlayer getPlayer()
public IslandEnterEvent.EnterCause getCause()
public org.bukkit.Location getCancelTeleport()
public void setCancelTeleport(org.bukkit.Location cancelTeleport)
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable