From f87eb5030ff67a90379c0ebeac3f9ae37158aa2b Mon Sep 17 00:00:00 2001 From: Peaches_MLG Date: Sat, 21 Oct 2023 12:04:48 +0100 Subject: [PATCH] Bump Teams --- build.gradle.kts | 2 +- .../iridiumskyblock/IridiumSkyblock.java | 28 ------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b6e59aba0..18de96dfa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,7 +23,7 @@ dependencies { implementation("org.jetbrains:annotations:24.0.1") implementation("com.j256.ormlite:ormlite-core:6.1") implementation("com.j256.ormlite:ormlite-jdbc:6.1") - implementation("com.iridium:IridiumTeams:2.2.2") + implementation("com.iridium:IridiumTeams:2.2.3") // Other dependencies that are not required or already available at runtime compileOnly("org.projectlombok:lombok:1.18.26") diff --git a/src/main/java/com/iridium/iridiumskyblock/IridiumSkyblock.java b/src/main/java/com/iridium/iridiumskyblock/IridiumSkyblock.java index 4c8eca0bd..0f8e9192d 100644 --- a/src/main/java/com/iridium/iridiumskyblock/IridiumSkyblock.java +++ b/src/main/java/com/iridium/iridiumskyblock/IridiumSkyblock.java @@ -144,7 +144,6 @@ public void registerListeners() { @Override public void loadConfigs() { - backupConfigs("backup"); this.configuration = getPersist().load(Configuration.class); this.messages = getPersist().load(Messages.class); this.commands = getPersist().load(Commands.class); @@ -275,33 +274,6 @@ private void saveFile(File parent, String name) { } } - private void backupConfigs(String backupFolderName) { - - getLogger().info("Attempting to create backup of configuration files..."); - - File pluginFolder = new File(getDataFolder().getPath()); - File backupFolder = new File(pluginFolder.getPath() + File.separator + backupFolderName); - if (!backupFolder.exists()) backupFolder.mkdir(); - - File[] configFiles = pluginFolder.listFiles((dir, name) -> name.endsWith(".yml") || name.endsWith(".db")); - - if(configFiles == null) { - getLogger().info("No files found."); - return; - } - - for (File configFile : configFiles) { - File backupFile = new File(backupFolder, configFile.getName()); - - try { - Files.copy(configFile.toPath(), backupFile.toPath(), StandardCopyOption.REPLACE_EXISTING); - } catch (IOException exception) { - getLogger().warning("Could not copy " + configFile.getName() + " to " + backupFile.getAbsolutePath()); - } - } - getLogger().info("Backup successful, check " + backupFolder.getPath() + "."); - } - @Override public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) { return this.chunkGenerator;