Skip to content

Commit 10f192b

Browse files
committed
remove debug logs
1 parent 17b009a commit 10f192b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/org/maxgamer/quickshop/listener/PlayerListener.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,27 +302,20 @@ private int getPlayerCanSell(Shop shop, double money, double price, Inventory pl
302302
}
303303

304304
int items = Util.countItems(playerInventory, shop.getItem());
305-
Util.debugLog("Items: " + items);
306305
final int ownerCanAfford = (int) (money / price);
307-
Util.debugLog("CanAfford: " + ownerCanAfford);
308-
309306
if (!shop.isUnlimited()) {
310307
// Amount check player amount and shop empty slot
311308
items = Math.min(items, shop.getRemainingSpace());
312-
Util.debugLog("Items: " + items);
313309
// Amount check player selling item total cost and the shop owner's balance
314310
items = Math.min(items, ownerCanAfford);
315-
Util.debugLog("Items: " + items);
316311
} else if (plugin.getConfig().getBoolean("shop.pay-unlimited-shop-owners")) {
317312
// even if the shop is unlimited, the config option pay-unlimited-shop-owners is set to
318313
// true,
319314
// the unlimited shop owner should have enough money.
320315
items = Math.min(items, ownerCanAfford);
321-
Util.debugLog("Items: " + items);
322316
}
323317
if (items < 0) {
324318
items = 0;
325-
Util.debugLog("Items: " + items);
326319
}
327320
return items;
328321
}

0 commit comments

Comments
 (0)