Skip to content

Commit 1fba93d

Browse files
committed
資金残高変動後、所持額表示を更新
1 parent 368c763 commit 1fba93d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/github/elic0de/thejpspit/hook/economy/JpsCoreHook.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ public void takeMoney(PitPlayer player, BigDecimal amount){
4444
PlayerUuidStr.instance(player.getPlayer()), PluginName.instance(TheJpsPit.getInstance().getName()),
4545
new MoneyJp(amount), PassBookNote.instance("PITで徴収")
4646
);
47+
player.getBoard().updateCoins();
4748
}
4849

4950
public void giveMoney(PitPlayer player, BigDecimal amount){
5051
api.giveBySystem(
5152
PlayerUuidStr.instance(player.getPlayer()), PluginName.instance(TheJpsPit.getInstance().getName()),
5253
new MoneyJp(amount), PassBookNote.instance("PITで付与"), false
5354
);
55+
player.getBoard().updateCoins();
5456
}
5557

5658
public String formatMoney(BigDecimal amount){

0 commit comments

Comments
 (0)