Skip to content

worldtime

Daedalus1400 edited this page May 17, 2017 · 3 revisions

Description:

The worldtime condition checks the time since the server started.

Added in release version 0.2.0

Arguments:

type

Must be "worldtime".

comparison

Accepts a string. Valid values are "<", and ">".

value

Accepts a number. Number of days since server start.

Example Usage:

The following example checks whether the server has been up for more than 2 in game days (~40 minutes):

{"type": "worldtime", "comparison": ">", "value": 2}

This is will evaluate as:

world.getTotalWorldTime() > (2 * 24000);

Clone this wiki locally