Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
fix tax
Browse files Browse the repository at this point in the history
  • Loading branch information
Librazy committed Dec 23, 2018
1 parent f348f12 commit ac3400f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public void sellTo(CommandSender sender, Arguments args) {
return;
}
double tax = 0.0;
if (plugin.config.market_tax > 0) {
tax = (price / 100) * plugin.config.market_tax;
if (plugin.config.transaction_tax > 0) {
tax = (price / 100) * plugin.config.transaction_tax;
}
Invoice invoice = plugin.transactionManager.sellTo(seller, buyer, item, price, tax);
seller.getInventory().setItemInMainHand(new ItemStack(Material.AIR));
Expand Down

0 comments on commit ac3400f

Please sign in to comment.