diff --git a/com/gamingmesh/jobs/api/JobsPaymentEvent.java b/com/gamingmesh/jobs/api/JobsPaymentEvent.java index a2d24db8..6483518a 100644 --- a/com/gamingmesh/jobs/api/JobsPaymentEvent.java +++ b/com/gamingmesh/jobs/api/JobsPaymentEvent.java @@ -37,6 +37,10 @@ public final class JobsPaymentEvent extends Event implements Cancellable { public void setCancelled(boolean cancel) { cancelled = cancel; } + + public void setAmount(double money) { + this.money = money; + } public HandlerList getHandlers() { return handlers; @@ -45,4 +49,4 @@ public final class JobsPaymentEvent extends Event implements Cancellable { public static HandlerList getHandlerList() { return handlers; } -} \ No newline at end of file +} diff --git a/com/gamingmesh/jobs/economy/BufferedEconomy.java b/com/gamingmesh/jobs/economy/BufferedEconomy.java index c82299eb..0a6d5c90 100644 --- a/com/gamingmesh/jobs/economy/BufferedEconomy.java +++ b/com/gamingmesh/jobs/economy/BufferedEconomy.java @@ -167,6 +167,9 @@ public class BufferedEconomy { // If event is canceled, dont do anything if (JobsPaymentEvent.isCancelled()) continue; + + double newAmount = JobsPaymentEvent.getAmount(); + payment.setAmount(newAmount); if (Jobs.getGCManager().UseServerAccount) { if (!hasMoney) {