Class NewHourEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.time.NewHourEvent

public class NewHourEvent 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

    Constructors
    Constructor
    Description
    NewHourEvent(long time)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    long
    To turn this into something you could display use the following: timeFormat = new SimpleDateFormat("MMMMM dd '@' HH:mm") timeFormat.format(event.getTime())

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NewHourEvent

      public NewHourEvent(long time)
  • 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()
    • 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