mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-23 15:21:21 +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)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public static void onCurrencyAdd(CurrencyAddEvent event) {
|
public static void onCurrencyAdd(CurrencyAddEvent event) {
|
||||||
|
if (event.isAdded()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String target = event.getTarget();
|
String target = event.getTarget();
|
||||||
|
|
||||||
if (target.equals(Economy.getServerAccountName())) {
|
if (target.equals(Economy.getServerAccountName())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user