mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Iris LMM Support
This commit is contained in:
parent
e732c8ff6a
commit
f334b0137e
@ -47,6 +47,7 @@ public class Iris extends MortarPlugin
|
|||||||
public static IrisBoardManager board;
|
public static IrisBoardManager board;
|
||||||
public static MultiverseCoreLink linkMultiverseCore;
|
public static MultiverseCoreLink linkMultiverseCore;
|
||||||
private static IrisLock lock = new IrisLock("Iris");
|
private static IrisLock lock = new IrisLock("Iris");
|
||||||
|
public static boolean lowMemoryMode = false;
|
||||||
|
|
||||||
@Permission
|
@Permission
|
||||||
public static PermissionIris perm;
|
public static PermissionIris perm;
|
||||||
@ -57,6 +58,7 @@ public class Iris extends MortarPlugin
|
|||||||
public Iris()
|
public Iris()
|
||||||
{
|
{
|
||||||
IO.delete(new File("iris"));
|
IO.delete(new File("iris"));
|
||||||
|
lowMemoryMode = Runtime.getRuntime().maxMemory() < 4 * 1000 * 1000 * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -309,5 +311,10 @@ public class Iris extends MortarPlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
Iris.info("\n\n " + new KList<String>(splash).toString("\n") + "\n");
|
Iris.info("\n\n " + new KList<String>(splash).toString("\n") + "\n");
|
||||||
|
|
||||||
|
if(lowMemoryMode)
|
||||||
|
{
|
||||||
|
Iris.warn("Low Memory mode Activated! For better performance, allocate 4gb or more to this server.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user