Fixed money dupe bug due to database only storing the secon to last remove balance
This commit is contained in:
parent
053c8f7060
commit
2b0ce135c5
|
|
@ -181,9 +181,9 @@ public class PlayerShop {
|
||||||
return false; // cancelled by another plugin, does this need logging?
|
return false; // cancelled by another plugin, does this need logging?
|
||||||
|
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
update();
|
|
||||||
this.balance -= amount;
|
this.balance -= amount;
|
||||||
this.setLastTransaction(System.currentTimeMillis());
|
this.setLastTransaction(System.currentTimeMillis());
|
||||||
|
update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user