9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 03:19:15 +00:00

Fixed merging error

This commit is contained in:
HeroBrineGoat
2022-01-19 21:21:38 -05:00
parent e35eee9937
commit 2cc4fcc878

View File

@@ -70,17 +70,16 @@ public class HMCCosmetics extends JavaPlugin {
}
private void registerListeners() {
final List<Listener> listeners = List.of(
List.of(
new JoinListener(this),
new ClickListener(this),
new TeleportListener(this),
new RespawnListener(this),
new HatRemoveFixListener(this)
).
forEach(
listener -> this.getServer().getPluginManager().registerEvents(listener, this)
);
for (final Listener : listener) {
this.getLogger().info("Loading listener: " + listener.class);
this.getServer().getPluginManager().registerEvents(listener, this);
}
}
private void registerCommands() {