From 334471b37b7e384f86208f0da58f5fec107705bd Mon Sep 17 00:00:00 2001 From: Jack <55409055+Jack1424@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:49:46 -0400 Subject: [PATCH] moved updateCheckInterval and Debug to top of config.yml --- .../jack1424/realtimeweather/ConfigManager.java | 2 +- src/main/resources/config.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/jack1424/realtimeweather/ConfigManager.java b/src/main/java/io/github/jack1424/realtimeweather/ConfigManager.java index 51f3970..76979a3 100644 --- a/src/main/java/io/github/jack1424/realtimeweather/ConfigManager.java +++ b/src/main/java/io/github/jack1424/realtimeweather/ConfigManager.java @@ -72,7 +72,7 @@ public class ConfigManager { setWeatherEnabled(false); } - setUpdateCheckInterval(configFile.getLong("updateCheckInterval")); + setUpdateCheckInterval(configFile.getLong("UpdateCheckInterval")); } public boolean debugEnabled() { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index ada6a06..a44f8a7 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,6 +1,21 @@ # RealTimeWeather Configuration File (v1.4.0) # You can find detailed instructions at: https://github.com/Jack1424/RealTimeWeather/wiki#editing-the-configuration-file +######################################## Real Time Weather Settings ################################################## +# By default, RealTimeWeather will check if an update is available every 24 hours (1734000 ticks) # +# You can change the interval here (or set to 0 to disable update checks) # +# If this is disabled, RealTimeWeather will still check for updates on startup # +# You can find a handy tick calculator here: https://mapmaking.fr/tick/ # +UpdateCheckInterval: 1734000 +# +# Set to true for various console messages when time and weather sync are executed # +# This is useful if the plugin is not working, and you want to find out what's wrong # +# This will also provide error messages even when an error is caught and managed by RTM # +# Note: There will be no messages during a time sync because they happen very frequently # +# Note: Unhandled plugin errors will still be logged regardless of the debug value # +Debug: false +###################################################################################################################### + ################################# TIME SYNC SETTINGS ################################################################# # Set to true to enable time syncing, or false to disable # # All time-related settings will be ignored if this is set to false #