Class NewDayEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.NewDayEvent

public class NewDayEvent extends org.bukkit.event.Event
  • 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 class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getBankruptedTowns

      public List<String> getBankruptedTowns()
    • getFallenTowns

      public List<String> getFallenTowns()
    • getFallenNations

      public List<String> 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