From d473126d4c206763e7a92c3b66778812b8ccd185 Mon Sep 17 00:00:00 2001 From: RePixelatedMC Date: Wed, 29 Nov 2023 16:16:11 +0100 Subject: [PATCH] What was this even meant to do? --- core/src/main/java/com/volmit/iris/Iris.java | 1 - .../iris/core/safeguard/ServerBootSFG.java | 32 ------------------- 2 files changed, 33 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/Iris.java b/core/src/main/java/com/volmit/iris/Iris.java index 4b48913fe..331e466d1 100644 --- a/core/src/main/java/com/volmit/iris/Iris.java +++ b/core/src/main/java/com/volmit/iris/Iris.java @@ -475,7 +475,6 @@ public class Iris extends VolmitPlugin implements Listener { UtilsSFG.unstablePrompt(); autoStartStudio(); - ServerBootSFG.CheckIrisWorlds(); checkForBukkitWorlds(); IrisToolbelt.retainMantleDataForSlice(String.class.getCanonicalName()); IrisToolbelt.retainMantleDataForSlice(BlockData.class.getCanonicalName()); diff --git a/core/src/main/java/com/volmit/iris/core/safeguard/ServerBootSFG.java b/core/src/main/java/com/volmit/iris/core/safeguard/ServerBootSFG.java index 4aa78c7c8..e9cc61975 100644 --- a/core/src/main/java/com/volmit/iris/core/safeguard/ServerBootSFG.java +++ b/core/src/main/java/com/volmit/iris/core/safeguard/ServerBootSFG.java @@ -76,36 +76,4 @@ public class ServerBootSFG { Iris.safeguard("Unstable mode has been activated."); } } - public static void CheckIrisWorlds() { - StringJoiner joiner = new StringJoiner(", "); - - // Get the main server folder - File serverFolder = Bukkit.getWorldContainer(); - - // List all files in the server folder - File[] listOfFiles = serverFolder.listFiles(); - - if (listOfFiles != null) { - for (File file : listOfFiles) { - // Check if it is a directory (world folders are directories) - if (file.isDirectory()) { - // Check for an "iris" folder inside the world directory - File irisFolder = new File(file, "iris"); - if (irisFolder.exists() && irisFolder.isDirectory()) { - String worldName = file.getName(); - joiner.add(worldName); - - // Check if the world is already loaded - if (Bukkit.getWorld(worldName) == null) { - WorldHandlerSFG.LoadWorld(worldName); - } - } - } - } - } else { - Bukkit.getLogger().warning("No files found in the server folder."); - } - // No Idea what I should do with this - String worldsList = joiner.toString(); - } }