Prevent taxes from being added to cancelled transactions as well

This commit is contained in:
Andrzej Pomirski 2014-02-10 12:27:52 +01:00
parent d51f52af9e
commit 9ada7281cd
1 changed files with 4 additions and 0 deletions

View File

@ -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())) {