Trying fix balance updating issue

Former-commit-id: 490f7bcff33bf5e25797aac13ed1ee76e747b75c
This commit is contained in:
sandtechnology committed 2020-08-01 01:52:51 +08:00
1 parent 412bb31cad
commit caddce012e
1 file changed
+10
@@ -86,6 +86,16 @@ public class EconomyTransaction {
*/
public boolean commit() {
return this.commit(new TransactionCallback() {
@Override
public void onSuccess(@NotNull EconomyTransaction economyTransaction) {
//Fetch some stupid plugin caching
if (from != null) {
core.getBalance(from);
}
if (to != null) {
core.getBalance(to);
}
}
});
}