From a6c561cd7e1a79e80f7f42d2b2768a7167d17bc3 Mon Sep 17 00:00:00 2001 From: Niklas Ehlen Date: Fri, 19 Jul 2024 00:49:40 +0200 Subject: [PATCH] Register menu function listener --- .../src/main/java/de/spookly/SpooklyCorePlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SpooklyCorePlugin/src/main/java/de/spookly/SpooklyCorePlugin.java b/SpooklyCorePlugin/src/main/java/de/spookly/SpooklyCorePlugin.java index 309d6fe..d583515 100644 --- a/SpooklyCorePlugin/src/main/java/de/spookly/SpooklyCorePlugin.java +++ b/SpooklyCorePlugin/src/main/java/de/spookly/SpooklyCorePlugin.java @@ -11,6 +11,7 @@ import net.kyori.adventure.translation.TranslationRegistry; import net.kyori.adventure.util.UTF8ResourceBundleControl; +import de.spookly.canvas.MenuFunctionListener; import de.spookly.configuration.Config; import de.spookly.configuration.ConfigurationWrapper; import de.spookly.database.MongoDatabaseConfiguration; @@ -93,6 +94,7 @@ protected void enable() { //Listener for event excuter registerEvent(new Listener()); + registerEvent(new MenuFunctionListener()); getLogger().info("Initialized bukkit event listener"); this.translationRegistry = TranslationRegistry.create(Key.key("spookly:value"));