From 6d6595c642ee39fa1f9627fa56e55294cb0ab177 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 14 Mar 2017 15:54:47 +0100 Subject: [PATCH] Fixed Events Added missing static method getHandlerList --- src/main/java/de/epiceric/shopchest/event/ShopEvent.java | 4 ++++ .../java/de/epiceric/shopchest/event/ShopPreInfoEvent.java | 4 ++++ .../java/de/epiceric/shopchest/event/ShopPreRemoveEvent.java | 4 ++++ .../java/de/epiceric/shopchest/event/ShopReloadEvent.java | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/src/main/java/de/epiceric/shopchest/event/ShopEvent.java b/src/main/java/de/epiceric/shopchest/event/ShopEvent.java index 963ca8c..c1a5b1b 100644 --- a/src/main/java/de/epiceric/shopchest/event/ShopEvent.java +++ b/src/main/java/de/epiceric/shopchest/event/ShopEvent.java @@ -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; diff --git a/src/main/java/de/epiceric/shopchest/event/ShopPreInfoEvent.java b/src/main/java/de/epiceric/shopchest/event/ShopPreInfoEvent.java index 0628c70..7e8e88d 100644 --- a/src/main/java/de/epiceric/shopchest/event/ShopPreInfoEvent.java +++ b/src/main/java/de/epiceric/shopchest/event/ShopPreInfoEvent.java @@ -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; diff --git a/src/main/java/de/epiceric/shopchest/event/ShopPreRemoveEvent.java b/src/main/java/de/epiceric/shopchest/event/ShopPreRemoveEvent.java index 1aa8f63..d97d9dd 100644 --- a/src/main/java/de/epiceric/shopchest/event/ShopPreRemoveEvent.java +++ b/src/main/java/de/epiceric/shopchest/event/ShopPreRemoveEvent.java @@ -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; diff --git a/src/main/java/de/epiceric/shopchest/event/ShopReloadEvent.java b/src/main/java/de/epiceric/shopchest/event/ShopReloadEvent.java index 86365b7..6bb15d7 100644 --- a/src/main/java/de/epiceric/shopchest/event/ShopReloadEvent.java +++ b/src/main/java/de/epiceric/shopchest/event/ShopReloadEvent.java @@ -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;