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
@ -170,6 +170,9 @@ public class BufferedEconomy {
|
||||
if (JobsPaymentEvent.isCancelled())
|
||||
continue;
|
||||
|
||||
double newAmount = JobsPaymentEvent.getAmount();
|
||||
payment.setAmount(newAmount);
|
||||
|
||||
if (Jobs.getGCManager().UseServerAccount) {
|
||||
if (!hasMoney) {
|
||||
Jobs.getActionBar().send(payment.getOfflinePlayer().getPlayer(), ChatColor.RED + Jobs.getLanguage().getMessage("economy.error.nomoney"));
|
||||
|
Loading…
Reference in New Issue
Block a user