Class BusinessTeleportHomeEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.business.BusinessEvent
us.teaminceptus.novaconomy.api.events.business.BusinessTeleportHomeEvent
All Implemented Interfaces:
Cancellable

public class BusinessTeleportHomeEvent extends BusinessEvent implements Cancellable
Called before a Player teleports to a Business's Home.
  • Constructor Details

    • BusinessTeleportHomeEvent

      public BusinessTeleportHomeEvent(@NotNull @NotNull Player p, @NotNull @NotNull Business business)
      Constructs a new BusinessTeleportHomeEvent.
      Parameters:
      p - Player
      business - Business
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Fetches the Player teleporting to the Business's Home.
      Returns:
      Player Teleporting
    • getLocation

      @NotNull public @NotNull Location getLocation()
      Fetches the Location the Player is teleporting to.
      Returns:
      Location
    • setLocation

      public void setLocation(@NotNull @NotNull Location location)
      Sets the Location the Player is teleporting to.
      Parameters:
      location - Location
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Cancellable