mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-23 07:11:20 +01:00
Prevent taxes from being added to cancelled transactions as well
This commit is contained in:
parent
d51f52af9e
commit
9ada7281cd
@ -26,6 +26,10 @@ public class TaxModule implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW)
|
||||
public static void onCurrencyAdd(CurrencyAddEvent event) {
|
||||
if (event.isAdded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
String target = event.getTarget();
|
||||
|
||||
if (target.equals(Economy.getServerAccountName())) {
|
||||
|
Loading…
Reference in New Issue
Block a user