doDaylightCycle

abstract var doDaylightCycle: Boolean

Controls whether the day-night cycle progresses in the world.

Example:

world.edit {
doDaylightCycle = false // Freeze time
}