fix handlerlist
This commit is contained in:
parent
28d56f33da
commit
deb2494ce4
|
|
@ -14,7 +14,7 @@ public final class SpawnShopEvent extends Event {
|
||||||
private final int pointsBefore;
|
private final int pointsBefore;
|
||||||
private final int pointsAfter;
|
private final int pointsAfter;
|
||||||
private final boolean buy;
|
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,
|
public SpawnShopEvent(Player player, int amount, double price, Material item,
|
||||||
int pointsBefore, int pointsAfter, boolean buy) {
|
int pointsBefore, int pointsAfter, boolean buy) {
|
||||||
|
|
@ -56,7 +56,12 @@ public final class SpawnShopEvent extends Event {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @NotNull HandlerList getHandlers() {
|
public HandlerList getHandlers() {
|
||||||
|
return handlers;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public static HandlerList getHandlerList() {
|
||||||
return handlers;
|
return handlers;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user