Class SuccessfulTownyTeleportEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.teleport.SuccessfulTownyTeleportEvent
public class SuccessfulTownyTeleportEvent
extends org.bukkit.event.Event
Thrown when Towny teleports a player after they have used /res, /town, or
/nation spawn.
- Since:
- 0.100.2.12
- Author:
- LlmDl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionSuccessfulTownyTeleportEvent
(Resident resident, org.bukkit.Location loc, double cost) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
double
org.bukkit.Location
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SuccessfulTownyTeleportEvent
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getResident
-
getTeleportLocation
public org.bukkit.Location getTeleportLocation() -
getTeleportCost
public double getTeleportCost()- Returns:
- The price that the player paid to teleport.
-