9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-22 16:49:14 +00:00
This commit is contained in:
Daniel Mills
2021-07-09 08:00:38 -04:00
parent 4fed35d189
commit b4f866be03
5 changed files with 10 additions and 7 deletions

View File

@@ -65,8 +65,7 @@ public class Iris extends VolmitPlugin implements Listener
instance = this;
INMS.get();
IO.delete(new File("iris"));
lowMemoryMode = Runtime.getRuntime().maxMemory() < 4000000000L; // 4 * 1000 * 1000 * 1000 // 4g
lowMemoryMode = Runtime.getRuntime().maxMemory() < 4000000000L; // 4 * 1000 * 1000 * 1000 // 4;
}
public static int getThreadCount()
@@ -178,6 +177,7 @@ public class Iris extends VolmitPlugin implements Listener
getServer().getPluginManager().registerEvents(new CommandLocate(), this);
getServer().getPluginManager().registerEvents(new WandManager() ,this);
super.onEnable();
Bukkit.getPluginManager().registerEvents(this, this);
}
private void checkConfigHotload() {