Skip to content

Commit

Permalink
Fix midding static handler method
Browse files Browse the repository at this point in the history
  • Loading branch information
SparklingComet authored and ess3sq committed Jul 3, 2022
1 parent 44df88d commit d41b928
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,13 @@ public void setForbidden(boolean forbidden) {
public HopperDirection getItemDirection() {
return dir;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ public PlayerShopChangeEvent(Player player, Shop s, ShopChange change, ObjectHol
super(player);
this.shop = s;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns the {@link Shop} object representing the player shop this event is about.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ public PlayerShopCloseEvent(Player buyer, Shop s) {
super(buyer);
this.shop = s;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns the {@link Shop} object representing the player shop this event is about.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public PlayerShopCreateEvent(Player p, Shop shop) {
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns whether or not the event has been cancelled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ public PlayerShopDestroyEvent(Player p, Shop shop) {
super(p);
this.shop = shop;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns whether or not the event has been cancelled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ public PlayerShopInventoryOpenEvent(Player p, Shop s, Action action, ItemStack i
super(p, action, itm, chest, chestFace);
this.shop = s;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns the {@link Shop} object representing the player shop this event is about.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ public PlayerShopOpenEvent(Player buyer, Shop s) {
super(buyer);
this.shop = s;
}

@Override
public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

/**
* Returns the {@link Shop} object representing the player shop this event is about.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ public class TradeShopReloadEvent extends ServerEvent {

private static final HandlerList handlers = new HandlerList();

public static HandlerList getHandlerList() {
return handlers;
}

public TradeShop plugin;
public CommandSender sender;

Expand All @@ -51,6 +47,10 @@ public HandlerList getHandlers() {
return handlers;
}

public static HandlerList getHandlerList() {
return handlers;
}

public TradeShopReloadEvent(TradeShop plugin, CommandSender sender) {
super();
this.plugin = plugin;
Expand Down

0 comments on commit d41b928

Please sign in to comment.