mirror of https://github.com/MilkBowl/VaultAPI.git
Add if(type == sucess) for call BalanceUpdateEvent in EconomyResponse
This commit is contained in:
parent
ef2e2e0dae
commit
8e88b9dc73
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue