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

Added debug messages

This commit is contained in:
Fisher
2022-01-19 09:54:13 -05:00
committed by GitHub
parent cfa36dab4b
commit 81bea485a5

View File

@@ -68,16 +68,17 @@ public class HMCCosmetics extends JavaPlugin {
}
private void registerListeners() {
List.of(
final List<Listener> listeners = 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() {