From ee49d05c6e45ad214a17d7dc1c209b554c56d71d Mon Sep 17 00:00:00 2001 From: Emilia Kond Date: Sun, 11 Feb 2024 11:42:41 +0200 Subject: [PATCH] rename --- bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java | 2 +- bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java b/bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java index 99f9cfa0..af8e9350 100644 --- a/bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java +++ b/bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java @@ -62,5 +62,5 @@ public interface BoltAPI { void registerPlayerSourceResolver(final PlayerSourceResolver playerSourceResolver); - void registerEvent(final Class clazz, final Consumer subscriber); + void registerListener(final Class clazz, final Consumer listener); } diff --git a/bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java b/bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java index a0864d1e..81bf4b90 100644 --- a/bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java +++ b/bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java @@ -566,8 +566,8 @@ public EventBus getEventBus() { } @Override - public void registerEvent(final Class clazz, final Consumer subscriber) { - this.eventBus.register(clazz, subscriber::accept); + public void registerListener(final Class clazz, final Consumer listener) { + this.eventBus.register(clazz, listener::accept); } public BoltPlayer player(final Player player) {