mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-14 11:46:08 +00:00
What was this even meant to do?
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user