Solved World Time

Discussion in 'Spigot Plugin Development' started by _Donut_, Jan 13, 2018.

  1. How come if I broadcast world.getTime() its different then the time in ticks displayed by the essentials command /time. Also If I do /time set 0, the world.getTime() doesnt go back to 0 even though the sun does move. I guess my question is how do i get the time essentials is displaying because that time seems to be the one that correlates with where the sun actually is.
  2. Duh, i shouldve thought of that. They just get the remainder of the world time divided by 24000 which makes sense however my code isnt displaying the correct time still, any idea?
    Code (Java):
    Bukkit.broadcastMessage((world.getTime() % 24000) + " ticks");
    Edit: i was in the wrong world :p
    #3 _Donut_, Jan 14, 2018
    Last edited: Jan 14, 2018

Share This Page