From 95d2d72a6bf2062c432302c3bf363ec10d984386 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 22 Apr 2024 19:38:14 +0200 Subject: [PATCH] update event docs (#264) --- _docs/geyser/events.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_docs/geyser/events.md b/_docs/geyser/events.md index baeab1a..b5e335c 100644 --- a/_docs/geyser/events.md +++ b/_docs/geyser/events.md @@ -42,7 +42,7 @@ public class ExampleMod implements ModInitializer, EventRegistrar { @Override public void onInitialize() { ServerLifecycleEvents.SERVER_STARTING.register((server) -> { - GeyserApi.api().eventBus().register(this, ExampleMod.class); // register your mod & this class as a listener + GeyserApi.api().eventBus().register(this, this); // register your mod & this class instance as a listener }); LOGGER.info("Geyser is cool!"); @@ -76,7 +76,7 @@ public class ExamplePlugin extends JavaPlugin implements EventRegistrar { @Override public void onEnable(){ getLogger().info("Registering Geyser event bus!"); - GeyserApi.api().eventBus().register(this, this); // register your plugin & this class as a listener + GeyserApi.api().eventBus().register(this, this); // register your plugin & this class instance as a listener } // here an event, we subscribe as usual with the @Subscribe annotation