mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +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())
|
if (JobsPaymentEvent.isCancelled())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
double newAmount = JobsPaymentEvent.getAmount();
|
||||||
|
payment.setAmount(newAmount);
|
||||||
|
|
||||||
if (Jobs.getGCManager().UseServerAccount) {
|
if (Jobs.getGCManager().UseServerAccount) {
|
||||||
if (!hasMoney) {
|
if (!hasMoney) {
|
||||||
Jobs.getActionBar().send(payment.getOfflinePlayer().getPlayer(), ChatColor.RED + Jobs.getLanguage().getMessage("economy.error.nomoney"));
|
Jobs.getActionBar().send(payment.getOfflinePlayer().getPlayer(), ChatColor.RED + Jobs.getLanguage().getMessage("economy.error.nomoney"));
|
||||||
|
Loading…
Reference in New Issue
Block a user