This commit is contained in:
rockyhawk64 2022-04-28 13:56:41 +10:00
parent f1717d2deb
commit 082e6cd924
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
version: 3.17.4.1
version: 3.17.4.2
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -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");