Class MVTeleportEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.onarandombox.MultiverseCore.event.MVTeleportEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class MVTeleportEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event that gets called when a player use the /mvtp command.
-
-
Constructor Summary
Constructors Constructor Description MVTeleportEvent(MVDestination dest, org.bukkit.entity.Player teleportee, org.bukkit.command.CommandSender teleporter, boolean safeTeleport)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MVDestination
getDestination()
Returns the destination that the player will spawn at.org.bukkit.Location
getFrom()
Returns the location the player was before the teleport.static org.bukkit.event.HandlerList
getHandlerList()
Gets the handler list.org.bukkit.event.HandlerList
getHandlers()
org.bukkit.entity.Player
getTeleportee()
Returns the player who will be teleported by this event.org.bukkit.command.CommandSender
getTeleporter()
Gets theCommandSender
who requested the Teleport.boolean
isCancelled()
boolean
isUsingSafeTTeleporter()
Looks if thisMVTeleportEvent
is using theSafeTTeleporter
.void
setCancelled(boolean cancel)
-
-
-
Constructor Detail
-
MVTeleportEvent
public MVTeleportEvent(MVDestination dest, org.bukkit.entity.Player teleportee, org.bukkit.command.CommandSender teleporter, boolean safeTeleport)
-
-
Method Detail
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
Gets the handler list. This is required by the event system.- Returns:
- A list of HANDLERS.
-
getTeleportee
public org.bukkit.entity.Player getTeleportee()
Returns the player who will be teleported by this event.- Returns:
- The player who will be teleported by this event.
-
getFrom
public org.bukkit.Location getFrom()
Returns the location the player was before the teleport.- Returns:
- The location the player was before the teleport.
-
getTeleporter
public org.bukkit.command.CommandSender getTeleporter()
Gets theCommandSender
who requested the Teleport.- Returns:
- The
CommandSender
who requested the Teleport
-
getDestination
public MVDestination getDestination()
Returns the destination that the player will spawn at.- Returns:
- The destination the player will spawn at.
-
isUsingSafeTTeleporter
public boolean isUsingSafeTTeleporter()
Looks if thisMVTeleportEvent
is using theSafeTTeleporter
.- Returns:
- True if this
MVTeleportEvent
is using theSafeTTeleporter
.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-