From c9f77835daade7f274cc549a8fb1aa91404f9703 Mon Sep 17 00:00:00 2001 From: FireML <106587317+FireML@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:16:52 +0000 Subject: [PATCH] Use the more detailed constructor for Jobs#perform event --- src/main/java/com/gamingmesh/jobs/Jobs.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index d7ff5129..4908d5ec 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -1453,7 +1453,8 @@ public final class Jobs extends JavaPlugin { payment.set(CurrencyType.MONEY, jobsPrePaymentEvent.getAmount()); payment.set(CurrencyType.POINTS, jobsPrePaymentEvent.getPoints()); - JobsExpGainEvent jobsExpGainEvent = new JobsExpGainEvent(payment.getOfflinePlayer(), job, expPayment); + JobsExpGainEvent jobsExpGainEvent = new JobsExpGainEvent(payment.getOfflinePlayer(), job, expPayment, + block, ent, victim, info); Bukkit.getServer().getPluginManager().callEvent(jobsExpGainEvent); // If event is canceled, don't do anything if (jobsExpGainEvent.isCancelled())