Add a configuration option
This commit is contained in:
parent
ee25df249b
commit
163c9bd71d
2 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,7 @@ public class TimeConfig {
|
||||||
|
|
||||||
// state is per player
|
// state is per player
|
||||||
public boolean dynamic;
|
public boolean dynamic;
|
||||||
|
public boolean twilight;
|
||||||
// x day cycles in 1 irl day
|
// x day cycles in 1 irl day
|
||||||
public double scale;
|
public double scale;
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ public class TimeConfig {
|
||||||
timeConfig.enabled = configuration.getBoolean("enabled");
|
timeConfig.enabled = configuration.getBoolean("enabled");
|
||||||
|
|
||||||
timeConfig.dynamic = configuration.getBoolean("dynamic");
|
timeConfig.dynamic = configuration.getBoolean("dynamic");
|
||||||
|
timeConfig.twilight = configuration.getBoolean("twilight");
|
||||||
timeConfig.scale = configuration.getDouble("scale");
|
timeConfig.scale = configuration.getDouble("scale");
|
||||||
|
|
||||||
return timeConfig;
|
return timeConfig;
|
||||||
|
|
|
@ -14,6 +14,12 @@ enabled: false
|
||||||
# Settings for both are in map.yml
|
# Settings for both are in map.yml
|
||||||
dynamic: true
|
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
|
# x in game day cycles in 1 irl day cycle
|
||||||
# Time will no longer be in sync
|
# Time will no longer be in sync
|
||||||
# Can be decimal
|
# Can be decimal
|
||||||
|
|
Loading…
Reference in a new issue