mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-06-25 05:54:55 +02:00
Fix payment
This commit is contained in:
parent
3b7502de82
commit
87063e9e60
|
@ -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