Method for setting time?

  • After careful consideration and due to limited usage, we’ve made the decision to discontinue the PaperMC forums. Moving forward, we recommend using Hangar for plugin uploads, and for all other community discussions and support, please join us on Discord.

KMatias

New member
Oct 31, 2023
1
0
1
In org.bukkit.World should I use setTime() or setFullTime() to get the same functionality that minecraft's time command provides?
 

Machine Maker

Paper Developer
Staff member
Dec 17, 2021
151
6
24
18
California
The time command sets or mutates the fulltime which is the "day" time or the time used to calculate the sky progress/moon, etc. It is also the time that is frozen if the daylight cycle gamerule is set to false.

EDIT: actually it looks like setTime also calls setFullTime behind the scenes with some calculation done since its a relative number. So I think either one can be used, but used in different ways.