Fix payment

This commit is contained in:
fullwall 2012-09-22 13:03:52 +08:00
parent 6ce2b9c2d2
commit 22ace31fbe

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