diff --git a/pom.xml b/pom.xml index 351131fac..166d4675e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.maxgamer QuickShop - Reremake 1.2.7.3 + Reremake 1.2.7.4_snapshot diff --git a/src/main/java/org/maxgamer/quickshop/Util/Util.java b/src/main/java/org/maxgamer/quickshop/Util/Util.java index ae9b1ba2d..f12f1df53 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/Util/Util.java @@ -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); + } + } }