mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-17 22:29:41 -05:00
Trying fix balance updating issue
Former-commit-id: 490f7bcff33bf5e25797aac13ed1ee76e747b75c
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user