1
0
mirror of https://github.com/amalthea-mc/ShopChest.git synced 2025-03-11 23:44:10 +00:00

Fixed Events

Added missing static method getHandlerList
This commit is contained in:
Eric 2017-03-14 15:54:47 +01:00
parent e29da1279b
commit 6d6595c642
4 changed files with 16 additions and 0 deletions

@ -19,6 +19,10 @@ public abstract class ShopEvent extends Event {
*/
public abstract Player getPlayer();
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;

@ -35,6 +35,10 @@ public class ShopPreInfoEvent extends Event implements Cancellable {
this.cancelled = cancel;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;

@ -35,6 +35,10 @@ public class ShopPreRemoveEvent extends Event implements Cancellable {
cancelled = cancel;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;

@ -35,6 +35,10 @@ public class ShopReloadEvent extends Event implements Cancellable {
return cancelled;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public void setCancelled(boolean cancel) {
cancelled = cancel;