Class CorporationTeleportHeadquartersEvent
java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
us.teaminceptus.novaconomy.api.events.corporation.CorporationTeleportHeadquartersEvent
- All Implemented Interfaces:
Cancellable
Called before a Player teleports to a Corporation's Headquarters.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
corporation -
Constructor Summary
ConstructorsConstructorDescriptionCorporationTeleportHeadquartersEvent(@NotNull Player p, @NotNull Corporation corporation) Constructs a new CorporationTeleportHeadquartersEvent. -
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.corporation.CorporationEvent
getCorporation, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CorporationTeleportHeadquartersEvent
public CorporationTeleportHeadquartersEvent(@NotNull @NotNull Player p, @NotNull @NotNull Corporation corporation) Constructs a new CorporationTeleportHeadquartersEvent.- Parameters:
p- Playercorporation- Corporation
-
-
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
-