Skip to content

Commit

Permalink
fix(VelocityMinecraftUtils): registerListeners
Browse files Browse the repository at this point in the history
Changed registerListeners from Class<?> to Object
  • Loading branch information
GeorgeV220 committed Jan 15, 2023
1 parent c15a27a commit d3506f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ public static void debug(ProxyServer proxyServer, final Plugin plugin, @NotNull
* @param plugin Plugin object
* @param listeners Class that have the events
*/
public static void registerListeners(ProxyServer proxyServer, Object plugin, Class<?> @NotNull ... listeners) {
for (Class<?> listener : listeners) {
public static void registerListeners(ProxyServer proxyServer, Object plugin, Object @NotNull ... listeners) {
for (Object listener : listeners) {
proxyServer.getEventManager().register(plugin, listener);
}
}
Expand Down

0 comments on commit d3506f1

Please sign in to comment.