Class HomePostTeleportEvent

java.lang.Object
org.bukkit.event.Event
net.godlycow.org.essc.api.home.event.HomePostTeleportEvent

public class HomePostTeleportEvent extends org.bukkit.event.Event
Fired after a player arrives at a home.

Observe-only: the teleport already happened, so this event cannot be cancelled.

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    HomePostTeleportEvent(org.bukkit.entity.Player player, Home home, org.bukkit.Location destination)
    Creates a new home post-teleport event.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    Returns the location the player arrived at (a copy).
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Returns the destination home.
    org.bukkit.entity.Player
    Returns the teleported player.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HomePostTeleportEvent

      public HomePostTeleportEvent(org.bukkit.entity.Player player, Home home, org.bukkit.Location destination)
      Creates a new home post-teleport event.
      Parameters:
      player - the teleported player
      home - the destination home
      destination - the location the player arrived at
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns the teleported player.
      Returns:
      the player
    • getHome

      public Home getHome()
      Returns the destination home.
      Returns:
      the home
    • getDestination

      public org.bukkit.Location getDestination()
      Returns the location the player arrived at (a copy).
      Returns:
      the destination
    • getHandlers

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

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