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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user