- Removed debug code

- fixed unstableprompt
This commit is contained in:
RePixelatedMC
2023-11-04 17:00:09 +01:00
parent fdfb708ce0
commit 8bf7451107
2 changed files with 30 additions and 29 deletions
@@ -67,7 +67,6 @@ public class ServerBootSFG {
} }
allIncompatiblePlugins = joiner.toString(); allIncompatiblePlugins = joiner.toString();
Iris.info("All Incompatible Plugins: " + allIncompatiblePlugins);
safeguardPassed = (count == 0); safeguardPassed = (count == 0);
if(!safeguardPassed){ if(!safeguardPassed){
@@ -61,37 +61,39 @@ public class UtilsSFG {
} }
public static void unstablePrompt(){ public static void unstablePrompt() {
Iris.info(""); if (unstablemode) {
Iris.info(C.DARK_GRAY + "--==<" + C.RED +" IMPORTANT " + C.DARK_GRAY + ">==--"); Iris.info("");
Iris.info(C.RED + "Iris is running in unstable mode what may cause the following issues."); Iris.info(C.DARK_GRAY + "--==<" + C.RED + " IMPORTANT " + C.DARK_GRAY + ">==--");
Iris.info(C.DARK_RED +"Server Issues"); Iris.info(C.RED + "Iris is running in unstable mode what may cause the following issues.");
Iris.info(C.RED + "- Server wont boot"); Iris.info(C.DARK_RED + "Server Issues");
Iris.info(C.RED + "- Data Loss"); Iris.info(C.RED + "- Server wont boot");
Iris.info(C.RED + "- Unexpected behavior."); Iris.info(C.RED + "- Data Loss");
Iris.info(C.RED + "- And More.."); Iris.info(C.RED + "- Unexpected behavior.");
Iris.info(C.DARK_RED + "World Issues"); Iris.info(C.RED + "- And More..");
Iris.info(C.RED + "- Worlds cant load due to corruption.."); Iris.info(C.DARK_RED + "World Issues");
Iris.info(C.RED + "- Worlds may slowly corrupt till they wont be able to load."); Iris.info(C.RED + "- Worlds cant load due to corruption..");
Iris.info(C.RED + "- World data loss."); Iris.info(C.RED + "- Worlds may slowly corrupt till they wont be able to load.");
Iris.info(C.RED + "- And More.."); Iris.info(C.RED + "- World data loss.");
Iris.info(C.DARK_RED + "ATTENTION:"+ C.RED + " While running iris in unstable mode you wont be eligible for support."); Iris.info(C.RED + "- And More..");
Iris.info(C.DARK_RED + "CAUSE: " + C.RED + MSGIncompatibleWarnings()); Iris.info(C.DARK_RED + "ATTENTION:" + C.RED + " While running iris in unstable mode you wont be eligible for support.");
Iris.info(""); Iris.info(C.DARK_RED + "CAUSE: " + C.RED + MSGIncompatibleWarnings());
if (IrisSettings.get().getGeneral().bootUnstable){ Iris.info("");
Iris.info(C.DARK_RED + "Boot Unstable is set to true, continuing with the startup process."); if (IrisSettings.get().getGeneral().bootUnstable) {
} Iris.info(C.DARK_RED + "Boot Unstable is set to true, continuing with the startup process.");
}
if(!IrisSettings.get().getGeneral().isBootUnstable()){ if (!IrisSettings.get().getGeneral().isBootUnstable()) {
Iris.info(C.DARK_RED + "Go to plugins/iris/settings.json and set ignoreUnstable to true if you wish to proceed."); Iris.info(C.DARK_RED + "Go to plugins/iris/settings.json and set ignoreUnstable to true if you wish to proceed.");
while (true) { while (true) {
try { try {
Thread.sleep(1000); Thread.sleep(1000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
// No // No
}
} }
} }
Iris.info("");
} }
Iris.info("");
} }
} }