fix handlerlist

This commit is contained in:
destro174 2022-01-04 00:53:01 +01:00
parent 28d56f33da
commit deb2494ce4

View File

@ -14,7 +14,7 @@ public final class SpawnShopEvent extends Event {
private final int pointsBefore;
private final int pointsAfter;
private final boolean buy;
private final HandlerList handlers = new HandlerList();
private static final HandlerList handlers = new HandlerList();
public SpawnShopEvent(Player player, int amount, double price, Material item,
int pointsBefore, int pointsAfter, boolean buy) {
@ -56,7 +56,12 @@ public final class SpawnShopEvent extends Event {
}
@Override
public @NotNull HandlerList getHandlers() {
public HandlerList getHandlers() {
return handlers;
}
@NotNull
public static HandlerList getHandlerList() {
return handlers;
}
}