diff --git a/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java b/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java index cab88a7b6..6e19d083a 100644 --- a/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java +++ b/src/main/java/org/maxgamer/quickshop/Shop/ShopManager.java @@ -416,7 +416,7 @@ public class ShopManager { amount = Integer.parseInt(message); } catch (NumberFormatException e) { if (message.equalsIgnoreCase(plugin.getConfig().getString("shop.word-for-trade-all-items", "all"))) { - amount = Util.countSpace(p.getInventory(), shop.getItem()); + amount = Util.countItems(p.getInventory(), shop.getItem()); } else { p.sendMessage(MsgUtil.getMessage("shop-purchase-cancelled", p)); Util.debugLog("Receive the chat " + message + " and it format failed: " + e.getMessage());