9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-28 11:29:18 +00:00

Merge remote-tracking branch 'origin/hooks' into hooks

# Conflicts:
#	src/main/java/io/github/fisher2911/hmccosmetics/hook/item/ItemsAdderHook.java
This commit is contained in:
HeroBrineGoat
2022-01-19 21:16:52 -05:00
2 changed files with 6 additions and 4 deletions

View File

@@ -70,16 +70,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() {