Class PlayerUseTeleporterEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerUseTeleporterEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerUseTeleporterEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This event is thrown when a player uses a teleporter.
  • Constructor Details

    • PlayerUseTeleporterEvent

      public PlayerUseTeleporterEvent(org.bukkit.entity.Player player, Teleporter teleporter)
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Player that is about to be teleported
      Returns:
      instance of Player object
    • getTeleporter

      public Teleporter getTeleporter()
      Teleporter that getPlayer() is about to be teleported to
      Returns:
      instance of Teleporter object
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

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

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