mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
cleanup
This commit is contained in:
@@ -6,6 +6,7 @@ public class IrisSafeguard {
|
|||||||
public static boolean unstablemode = false;
|
public static boolean unstablemode = false;
|
||||||
public static boolean warningmode = false;
|
public static boolean warningmode = false;
|
||||||
public static boolean stablemode = false;
|
public static boolean stablemode = false;
|
||||||
|
|
||||||
public static void IrisSafeguardSystem() {
|
public static void IrisSafeguardSystem() {
|
||||||
Iris.info("Enabled Iris SafeGuard");
|
Iris.info("Enabled Iris SafeGuard");
|
||||||
ServerBootSFG.BootCheck();
|
ServerBootSFG.BootCheck();
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ public class ModesSFG {
|
|||||||
stable();
|
stable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void stable() {
|
public static void stable() {
|
||||||
Iris.safeguard(C.BLUE + "Iris is running Stable");
|
Iris.safeguard(C.BLUE + "Iris is running Stable");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
package com.volmit.iris.core.safeguard;
|
package com.volmit.iris.core.safeguard;
|
||||||
|
|
||||||
import com.volmit.iris.core.IrisSettings;
|
|
||||||
import oshi.SystemInfo;
|
|
||||||
import oshi.hardware.GlobalMemory;
|
|
||||||
|
|
||||||
import static com.volmit.iris.util.misc.getHardware.*;
|
|
||||||
|
|
||||||
public class PerformanceSFG {
|
public class PerformanceSFG {
|
||||||
public static void calculatePerformance() {
|
public static void calculatePerformance() {
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.*;
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.StringJoiner;
|
||||||
|
|
||||||
import static com.volmit.iris.Iris.getJavaVersion;
|
import static com.volmit.iris.Iris.getJavaVersion;
|
||||||
import static com.volmit.iris.Iris.instance;
|
import static com.volmit.iris.Iris.instance;
|
||||||
@@ -58,8 +60,7 @@ public class ServerBootSFG {
|
|||||||
!instance.getServer().getVersion().contains("Paper") &&
|
!instance.getServer().getVersion().contains("Paper") &&
|
||||||
!instance.getServer().getVersion().contains("Spigot") &&
|
!instance.getServer().getVersion().contains("Spigot") &&
|
||||||
!instance.getServer().getVersion().contains("Pufferfish") &&
|
!instance.getServer().getVersion().contains("Pufferfish") &&
|
||||||
!instance.getServer().getVersion().contains("Bukkit"))
|
!instance.getServer().getVersion().contains("Bukkit")) {
|
||||||
{
|
|
||||||
passedserversoftware = false;
|
passedserversoftware = false;
|
||||||
joiner.add("Server Software");
|
joiner.add("Server Software");
|
||||||
severityHigh++;
|
severityHigh++;
|
||||||
|
|||||||
Reference in New Issue
Block a user