Class PreNewTownEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.PreNewTownEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPreNewTownEvent
(org.bukkit.entity.Player player, String townName, org.bukkit.Location spawnLocation, double price) -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PreNewTownEvent
public PreNewTownEvent(org.bukkit.entity.Player player, String townName, org.bukkit.Location spawnLocation, double price)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer() -
getTownName
-
getTownLocation
public org.bukkit.Location getTownLocation() -
getTownWorldCoord
-
getPrice
public double getPrice() -
setPrice
public void setPrice(double price) -
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-