Add a configuration option

This commit is contained in:
Minecon724 2024-09-24 20:12:40 +02:00
parent ee25df249b
commit 163c9bd71d
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 8 additions and 0 deletions

View file

@ -7,6 +7,7 @@ public class TimeConfig {
// state is per player
public boolean dynamic;
public boolean twilight;
// x day cycles in 1 irl day
public double scale;
@ -16,6 +17,7 @@ public class TimeConfig {
timeConfig.enabled = configuration.getBoolean("enabled");
timeConfig.dynamic = configuration.getBoolean("dynamic");
timeConfig.twilight = configuration.getBoolean("twilight");
timeConfig.scale = configuration.getDouble("scale");
return timeConfig;

View file

@ -14,6 +14,12 @@ enabled: false
# Settings for both are in map.yml
dynamic: true
# Synchronize sunrise and sunset, make day and night slower or faster accordingly
# Accuracy is up to a few minutes
# ...unless you live on one of the Poles, in which case it will be up to a few hours or just broken
# Developers wanted for that: https://git.m724.eu/Minecon724/wtapi/issues/2
twilight: true
# x in game day cycles in 1 irl day cycle
# Time will no longer be in sync
# Can be decimal