Use correct tax amount 🙈

This commit is contained in:
Phoenix616 2021-10-15 15:26:44 +01:00
parent 6962ae2590
commit 01b7cddaa3
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class TaxModule implements Listener {
ChestShop.getBukkitLogger().info(String.format(TAX_SENT_MESSAGE, taxAmount, taxSent, taxedSentAmount));
BigDecimal taxReceived = getTaxAmount(event.getAmountReceived(), taxAmount);
BigDecimal taxedReceivedAmount = event.getAmountReceived().subtract(taxSent);
BigDecimal taxedReceivedAmount = event.getAmountReceived().subtract(taxReceived);
event.setAmountReceived(taxedReceivedAmount);
ChestShop.getBukkitLogger().info(String.format(TAX_RECEIVED_MESSAGE, taxAmount, taxReceived, taxedReceivedAmount));
}