Skip to content

Commit

Permalink
Removed debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
PainOchoco committed Oct 24, 2022
1 parent fbcc61d commit b8c8258
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/com/palmergames/bukkit/towny/tasks/DailyTimerTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,15 @@ protected void collectNationTaxes(Nation nation) {
if (nation.isTaxPercentage()) {
taxAmount = town.getAccount().getHoldingBalance() * taxAmount / 100;
taxAmount = Math.min(taxAmount, nation.getMaxPercentTaxAmount());

System.out.println(taxAmount);
}

PreTownPaysNationTaxEvent event = new PreTownPaysNationTaxEvent(town, nation, taxAmount);
if (BukkitTools.isEventCancelled(event)) {
TownyMessaging.sendPrefixedTownMessage(town, event.getCancelMessage());
continue;
}

taxAmount = event.getTax();
System.out.println(taxAmount);

if (town.getAccount().canPayFromHoldings(taxAmount)) {
// Town is able to pay the nation's tax.
Expand Down

0 comments on commit b8c8258

Please sign in to comment.