Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rymiel committed Feb 11, 2024
1 parent 0681e27 commit ee49d05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bukkit/src/main/java/org/popcraft/bolt/BoltAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ public interface BoltAPI {

void registerPlayerSourceResolver(final PlayerSourceResolver playerSourceResolver);

<T extends Event> void registerEvent(final Class<T> clazz, final Consumer<? super T> subscriber);
<T extends Event> void registerListener(final Class<T> clazz, final Consumer<? super T> listener);
}
4 changes: 2 additions & 2 deletions bukkit/src/main/java/org/popcraft/bolt/BoltPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ public EventBus<Event> getEventBus() {
}

@Override
public <T extends Event> void registerEvent(final Class<T> clazz, final Consumer<? super T> subscriber) {
this.eventBus.register(clazz, subscriber::accept);
public <T extends Event> void registerListener(final Class<T> clazz, final Consumer<? super T> listener) {
this.eventBus.register(clazz, listener::accept);
}

public BoltPlayer player(final Player player) {
Expand Down

0 comments on commit ee49d05

Please sign in to comment.