Add if(type == sucess) for call BalanceUpdateEvent in EconomyResponse

This commit is contained in:
hbarreau 2020-12-17 12:02:27 +01:00
parent ef2e2e0dae
commit 8e88b9dc73
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class EconomyResponse {
this.balance = balance;
this.type = type;
this.errorMessage = errorMessage;
Bukkit.getServer().getPluginManager().callEvent(new BalanceUpdateEvent(this));
if(type == ResponseType.SUCCESS) Bukkit.getServer().getPluginManager().callEvent(new BalanceUpdateEvent(this));
}
/**