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.CancellableEvent 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 MVDestinationgetDestination()Returns the destination that the player will spawn at.org.bukkit.LocationgetFrom()Returns the location the player was before the teleport.static org.bukkit.event.HandlerListgetHandlerList()Gets the handler list.org.bukkit.event.HandlerListgetHandlers()org.bukkit.entity.PlayergetTeleportee()Returns the player who will be teleported by this event.org.bukkit.command.CommandSendergetTeleporter()Gets theCommandSenderwho requested the Teleport.booleanisCancelled()booleanisUsingSafeTTeleporter()Looks if thisMVTeleportEventis using theSafeTTeleporter.voidsetCancelled(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:
getHandlersin 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 theCommandSenderwho requested the Teleport.- Returns:
- The
CommandSenderwho 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 thisMVTeleportEventis using theSafeTTeleporter.- Returns:
- True if this
MVTeleportEventis using theSafeTTeleporter.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
-