From 082e6cd9243cf421e35ac91188a4e2d2a54a9ed8 Mon Sep 17 00:00:00 2001 From: rockyhawk64 Date: Thu, 28 Apr 2022 13:56:41 +1000 Subject: [PATCH] 3.17.4.2 --- resource/plugin.yml | 2 +- src/me/rockyhawk/commandpanels/CommandPanels.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resource/plugin.yml b/resource/plugin.yml index d7effa5..d83b252 100644 --- a/resource/plugin.yml +++ b/resource/plugin.yml @@ -1,4 +1,4 @@ -version: 3.17.4.1 +version: 3.17.4.2 main: me.rockyhawk.commandpanels.CommandPanels name: CommandPanels author: RockyHawk diff --git a/src/me/rockyhawk/commandpanels/CommandPanels.java b/src/me/rockyhawk/commandpanels/CommandPanels.java index 73218a7..0274405 100644 --- a/src/me/rockyhawk/commandpanels/CommandPanels.java +++ b/src/me/rockyhawk/commandpanels/CommandPanels.java @@ -120,11 +120,6 @@ public class CommandPanels extends JavaPlugin{ inventorySaver.inventoryConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder() + File.separator + "inventories.yml")); this.config = YamlConfiguration.loadConfiguration(new File(this.getDataFolder() + File.separator + "config.yml")); - //set version to latest version - if (Objects.requireNonNull(this.config.getString("updater.update-checks")).equalsIgnoreCase("true")) { - updater.githubNewUpdate(false); - } - //save the config.yml file File configFile = new File(this.getDataFolder() + File.separator + "config.yml"); if (!configFile.exists()) { @@ -148,6 +143,11 @@ public class CommandPanels extends JavaPlugin{ } } + //set version to latest version + if (Objects.requireNonNull(this.config.getString("updater.update-checks")).equalsIgnoreCase("true")) { + updater.githubNewUpdate(false); + } + //setup class files this.setupEconomy(); this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");