public class PlayerTeleportToPlotEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
PlayerTeleportToPlotEvent(org.bukkit.entity.Player player,
org.bukkit.Location from,
Plot plot)
PlayerTeleportToPlotEvent: Called when a player teleports to a plot
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.Location |
getFrom()
Get the from location
|
static org.bukkit.event.HandlerList |
getHandlerList()
|
org.bukkit.event.HandlerList |
getHandlers()
|
Plot |
getPlot()
Get the plot involved
|
boolean |
isCancelled()
|
void |
setCancelled(boolean cancelled)
|
public PlayerTeleportToPlotEvent(org.bukkit.entity.Player player, org.bukkit.Location from, Plot plot)
player
-from
-plot
-public static org.bukkit.event.HandlerList getHandlerList()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public org.bukkit.Location getFrom()
public Plot getPlot()
public boolean isCancelled()
isCancelled
in
interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in
interface org.bukkit.event.Cancellable