Class NewDayEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.NewDayEvent
public class NewDayEvent
extends org.bukkit.event.Event
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
double
long
getTime()
To turn this into something you could display use the following: timeFormat = new SimpleDateFormat("MMMMM dd '@' HH:mm") timeFormat.format(event.getTime())double
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
NewDayEvent
public NewDayEvent(List<String> bankruptTowns, List<String> removedTowns, List<String> fallenNations, double townUpkeepCollected, double nationUpkeepCollected, long time) Event thrown after the upkeep and taxes are collected on each Towny New Day.- Parameters:
bankruptTowns
- - Towns that went bankrupt.removedTowns
- - Towns that were deleted.fallenNations
- - Nations that were deleted.townUpkeepCollected
- - Total amount of upkeep paid by towns.nationUpkeepCollected
- - Total amount of upkeep paid by nations.time
- - The system time in milliseconds when the new day code started.
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getBankruptedTowns
-
getFallenTowns
-
getFallenNations
-
getTownUpkeepCollected
public double getTownUpkeepCollected() -
getNationUpkeepCollected
public double getNationUpkeepCollected() -
getTime
public long getTime()To turn this into something you could display use the following: timeFormat = new SimpleDateFormat("MMMMM dd '@' HH:mm") timeFormat.format(event.getTime())- Returns:
- time
-