Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.bukkit.event.Event

        org.bukkit.event.Event.Result
    • Constructor Summary

      Constructors 
      Constructor Description
      MVTeleportEvent​(MVDestination dest, org.bukkit.entity.Player teleportee, org.bukkit.command.CommandSender teleporter, boolean safeTeleport)  
    • 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 class org.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 the CommandSender 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.
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface org.bukkit.event.Cancellable
      • setCancelled

        public void setCancelled​(boolean cancel)
        Specified by:
        setCancelled in interface org.bukkit.event.Cancellable