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
|
||||
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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue