mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
debug
Former-commit-id: 2a557871ab02fa73b02e4d183cb007e02acbdb1e [formerly 104dc3d77ccd6fe53d6e0304950ef33e5ac9cc4d] Former-commit-id: 68f522c84510f218bd26a5526ba543ec4f90b495
This commit is contained in:
1 parent
97c507b0cb
commit
f4b93c4d32
2 files changed
+9
-1
No files matched your search
@@ -32,6 +32,7 @@ import java.text.DecimalFormat;
|
||||
import java.util.AbstractMap.SimpleEntry;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.logging.Level;
|
||||
|
||||
/**
|
||||
* @author MACHENIKE
|
||||
@@ -462,6 +463,7 @@ public class Util {
|
||||
items += iStack.getAmount();
|
||||
}
|
||||
}
|
||||
Util.debugLog("Items: "+items);
|
||||
return items;
|
||||
}
|
||||
|
||||
@@ -490,6 +492,7 @@ public class Util {
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
Util.debugLog("Space:"+space);
|
||||
return space;
|
||||
}
|
||||
|
||||
@@ -710,5 +713,10 @@ public class Util {
|
||||
}
|
||||
|
||||
}
|
||||
public static void debugLog(String logs) {
|
||||
if(plugin.getConfig().getBoolean("dev-mode")) {
|
||||
plugin.getLogger().info("[DEBUG]"+logs);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user