Fix payment

This commit is contained in:
fullwall 2012-09-22 13:03:52 +08:00
parent 3b7502de82
commit 87063e9e60

View File

@ -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)));
}