diff --git a/src/main/java/jp/wolfx/mceew/MCEEW.java b/src/main/java/jp/wolfx/mceew/MCEEW.java index 2018d60..8292149 100644 --- a/src/main/java/jp/wolfx/mceew/MCEEW.java +++ b/src/main/java/jp/wolfx/mceew/MCEEW.java @@ -67,8 +67,8 @@ public final class MCEEW extends JavaPlugin { private static String cwa_alert_sound_type; private static double cwa_alert_sound_volume; private static double cwa_alert_sound_pitch; - private static String jmaEqlist_md5; - private static String cencEqlist_md5; + private static String jmaEqlist_md5 = null; + private static String cencEqlist_md5 = null; private static JsonObject jmaEqlistData = null; private static JsonObject cencEqlistData = null; private static final ArrayList jmaEqlist_info = new ArrayList<>(); @@ -171,13 +171,13 @@ private void cancelScheduler() { private void mceewScheduler(boolean updaterBoolean) { if (!folia) { - Bukkit.getScheduler().runTaskAsynchronously(this, () -> wsClient(true)); + Bukkit.getScheduler().runTaskAsynchronously(this, () -> wsClient(updaterBoolean)); if (updaterBoolean) { Bukkit.getScheduler().runTaskAsynchronously(this, this::updater); } } else { Plugin plugin = this; - Bukkit.getAsyncScheduler().runNow(plugin, task1 -> wsClient(true)); + Bukkit.getAsyncScheduler().runNow(plugin, task1 -> wsClient(updaterBoolean)); if (updaterBoolean) { Bukkit.getAsyncScheduler().runNow(plugin, task2 -> updater()); } @@ -734,8 +734,6 @@ private void loadEew(Boolean first) { this.cancelScheduler(); this.saveDefaultConfig(); this.reloadConfig(); - jmaEqlist_md5 = null; - cencEqlist_md5 = null; jpEewBoolean = this.getConfig().getBoolean("enable_jp"); scEewBoolean = this.getConfig().getBoolean("enable_sc"); cwaEewBoolean = this.getConfig().getBoolean("enable_cwa");