mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-01 14:08:08 +01:00
Fix payment
This commit is contained in:
parent
6ce2b9c2d2
commit
22ace31fbe
@ -33,7 +33,7 @@ public class PaymentListener implements Listener {
|
||||
event.setCancelReason(String.format("Need at least %s.", provider.format(cost)));
|
||||
return;
|
||||
}
|
||||
provider.bankWithdraw(name, cost);
|
||||
provider.withdrawPlayer(name, cost);
|
||||
Messaging.sendF(event.getCreator(), ChatColor.GREEN + "Withdrew %s for your NPC.",
|
||||
StringHelper.wrap(provider.format(cost)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user