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
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
Get new hours as in /timeint
Get new hours as in /timeint
Get new minutes as in /timeint
Get new seconds as in /timeorg.bukkit.entity.Player
The player whose time increasedMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-