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
Called before a Player teleports to a Business's Home.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBusinessTeleportHomeEvent(@NotNull Player p, @NotNull Business business) Constructs a new BusinessTeleportHomeEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull LocationFetches the Location the Player is teleporting to.@NotNull PlayerFetches the Player teleporting to the Business's Home.booleanvoidsetCancelled(boolean cancelled) voidsetLocation(@NotNull Location location) Sets the Location the Player is teleporting to.Methods inherited from class us.teaminceptus.novaconomy.api.events.business.BusinessEvent
getBusiness, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BusinessTeleportHomeEvent
Constructs a new BusinessTeleportHomeEvent.- Parameters:
p- Playerbusiness- Business
-
-
Method Details
-
getPlayer
Fetches the Player teleporting to the Business's Home.- Returns:
- Player Teleporting
-
getLocation
Fetches the Location the Player is teleporting to.- Returns:
- Location
-
setLocation
Sets the Location the Player is teleporting to.- Parameters:
location- Location
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-