mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-29 04:18:07 +01:00
Use the more detailed constructor for Jobs#perform event
This commit is contained in:
parent
c96b24bb10
commit
c9f77835da
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user