aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-06-09 12:34:08 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-06-09 12:34:08 +0100
commit3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58 (patch)
tree2076f0c00ca7b91e3bcaf6f76bd606aa941e3c7f /src/main/java/cc/polyfrost/oneconfig/events/EventManager.java
parent9624c38e07c7f18ec754cf5ee14d54df31e708dc (diff)
downloadOneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.gz
OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.tar.bz2
OneConfig-3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58.zip
a few little things that I noticed when doc'ing
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() {
}