1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Lets make it always in async

This commit is contained in:
Zrips 2019-05-02 21:00:36 +03:00
parent 9d4e62da1e
commit 14253be043

View File

@ -5,8 +5,6 @@ import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.gamingmesh.jobs.Jobs;
public final class JobsPaymentEvent extends Event implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private OfflinePlayer offlinePlayer;
@ -15,7 +13,7 @@ public final class JobsPaymentEvent extends Event implements Cancellable {
private boolean cancelled = false;
public JobsPaymentEvent(OfflinePlayer offlinePlayer, double money, double points) {
super(Jobs.getGCManager().isEconomyAsync());
super(true);
this.offlinePlayer = offlinePlayer;
this.money = money;
this.points = points;