diff --git a/src/main/java/at/jkvn/eventlib/EventLib.java b/src/main/java/at/jkvn/eventlib/EventLib.java index e5bcb38..610015d 100644 --- a/src/main/java/at/jkvn/eventlib/EventLib.java +++ b/src/main/java/at/jkvn/eventlib/EventLib.java @@ -66,6 +66,14 @@ public static void registerListeners(Listener... allListeners) { listeners.addAll(Arrays.stream(allListeners).toList()); } + public static void unregisterListener(Listener listener) { + listeners.remove(listener); + } + + public static void unregisterListeners(Listener... allListeners) { + listeners.removeAll(Arrays.stream(allListeners).toList()); + } + public static void configure(Configuration configuration) { EventLib.configuration = configuration; }