aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events/EventManager.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/events/EventManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
index cb75a12..05bb196 100644
--- a/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
+++ b/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
@@ -10,9 +10,13 @@ public final class EventManager {
/**
* The instance of the {@link EventManager}.
*/
- public static final EventManager INSTANCE = new EventManager();
+ private static final EventManager INSTANCE = new EventManager();
private final EventBus eventBus = new EventBus(new LMFInvoker(), Throwable::printStackTrace);
+ public static EventManager getEventManager() {
+ return INSTANCE;
+ }
+
private EventManager() {
}