Skip to content

Commit 62e6c0f

Browse files
committed
📝 Fix zmenu provider
1 parent 4774593 commit 62e6c0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/fr/traqueur/currencies/providers/ZMenuItemProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public BigDecimal getBalance(OfflinePlayer offlinePlayer) {
3333
public void deposit(OfflinePlayer offlinePlayer, BigDecimal amount, String reason) {
3434
if (offlinePlayer.isOnline()) {
3535
Player player = offlinePlayer.getPlayer();
36-
removeItems(player, this.menuItemStack.build(player), amount.intValue());
36+
giveItem(player, amount.intValue(), this.menuItemStack.build(player));
3737
} else {
3838
this.plugin.getLogger().severe("Deposit items to " + offlinePlayer.getName() + " but is offline");
3939
}
@@ -43,7 +43,7 @@ public void deposit(OfflinePlayer offlinePlayer, BigDecimal amount, String reaso
4343
public void withdraw(OfflinePlayer offlinePlayer, BigDecimal amount, String reason) {
4444
if (offlinePlayer.isOnline()) {
4545
Player player = offlinePlayer.getPlayer();
46-
giveItem(player, amount.intValue(), this.menuItemStack.build(player));
46+
removeItems(player, this.menuItemStack.build(player), amount.intValue());
4747
} else {
4848
this.plugin.getLogger().severe("Withdraw items from " + offlinePlayer.getName() + " but is offline");
4949
}

0 commit comments

Comments
 (0)