Another all fix

Former-commit-id: b10c805e42640909d73bbcc822243b253689db6b [formerly 481dd4a682d2b66a6b1e6fbedefc61987fa0ec32]
Former-commit-id: 26461cdd7cd4b1a8945c637838a419dd1e07150f
This commit is contained in:
Ghost_chu committed 2019-11-15 20:56:14 +08:00
1 parent 0bd550d7b2
commit 51e95608b9
1 file changed
+1 -1
@@ -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());