Moved some test code, optimized Distiller

This commit is contained in:
Sn0wStorm
2019-11-25 20:28:08 +01:00
parent a5f73ceacc
commit c287b6350f
8 changed files with 476 additions and 445 deletions
+3 -1
View File
@@ -38,10 +38,12 @@ public class BData {
long t2 = System.currentTimeMillis();
if (t2 - t1 > 5000) {
if (t2 - t1 > 8000) {
// Spigot is very slow at loading inventories from yml. Notify Admin that loading Data took long
P.p.log("Bukkit took " + (t2 - t1) / 1000.0 + "s to load the Data File,");
P.p.log("consider switching to Paper, or have less items in Barrels");
} else {
P.p.debugLog("Loading data.yml: " + (t2 - t1) + "ms");
}
Brew.installTime = data.getLong("installTime", System.currentTimeMillis());