Class PlayerChangeTimeEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerChangeTimeEvent

public class PlayerChangeTimeEvent extends org.bukkit.event.Event
Event thrown every 15 seconds when their time increases.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerChangeTimeEvent(org.bukkit.entity.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    int
    Get new hours as in /time
    int
    Get new hours as in /time
    int
    Get new minutes as in /time
    int
    Get new seconds as in /time
    org.bukkit.entity.Player
    The player whose time increased

    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

    • PlayerChangeTimeEvent

      public PlayerChangeTimeEvent(org.bukkit.entity.Player player)
  • Method Details

    • getNewSeconds

      public int getNewSeconds()
      Get new seconds as in /time
      Returns:
      new seconds
    • getNewMinutes

      public int getNewMinutes()
      Get new minutes as in /time
      Returns:
      new minutes
    • getNewHours

      public int getNewHours()
      Get new hours as in /time
      Returns:
      new hours
    • getNewDays

      public int getNewDays()
      Get new hours as in /time
      Returns:
      new hours
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      The player whose time increased
      Returns:
      player
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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