-
Notifications
You must be signed in to change notification settings - Fork 758
Haru edited this page Oct 19, 2016
·
1 revision
- day;
- night;
These two commands will switch the entire server between day and night mode respectively. If your server is set to cycle between day and night by configuration, it will eventually return to that cycle.
- script DayNight -1,{ [[end]]; [[OnClock]]0600: day; end; [[OnInit]]: // setting correct mode upon server start-up [[if]]([[gettime]](3)>=6 && gettime(3)<18) { end; } OnClock1800: night; end; }
This script allows to emulate the day/night cycle as the server does, but also allows triggering additional effects upon change, like announces, gifts, etc. The day/night cycle set by configuration should be disabled, when this script is used.
Category:Script Command