mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Possible to edit amount in event
This commit is contained in:
parent
e394f045db
commit
37235531e8
@ -169,6 +169,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user