mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +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.MONEY, jobsPrePaymentEvent.getAmount());
|
||||||
payment.set(CurrencyType.POINTS, jobsPrePaymentEvent.getPoints());
|
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);
|
Bukkit.getServer().getPluginManager().callEvent(jobsExpGainEvent);
|
||||||
// If event is canceled, don't do anything
|
// If event is canceled, don't do anything
|
||||||
if (jobsExpGainEvent.isCancelled())
|
if (jobsExpGainEvent.isCancelled())
|
||||||
|
Loading…
Reference in New Issue
Block a user