Command block 1.9-1.12 and daylight sensor don't work?
#5
(06-16-2017, 11:46 PM)IronWolf Wrote: Its posible to detect the word time in plugins?

You can use GetTimeOfDay. For example


Code:
Player:GetWorld():GetTimeOfDay()


will give the world time in ticks for the world a player is in.

Code:
cRoot:Get():GetWorld("worldname"):GetTimeOfDay()
will give the time of the specified world.

https://api.cuberite.org/cWorld.html
Reply
Thanks given by:


Messages In This Thread
RE: Command block 1.9-1.12 and daylight sensor don't work? - by Mathias - 06-17-2017, 12:43 AM



Users browsing this thread: 1 Guest(s)