Skip to content

Commit

Permalink
Merge event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
freyacodes authored Jun 10, 2022
1 parent d385791 commit c47990b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions LavalinkServer/src/main/java/lavalink/server/Launcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,9 @@ object Launcher {
ApplicationListener { event: Any ->
if (event is ApplicationEnvironmentPreparedEvent) {
log.info(getVersionInfo())
}
},
ApplicationListener { event: Any ->
if (event is ApplicationReadyEvent) {
} else if (event is ApplicationReadyEvent) {
log.info("Lavalink is ready to accept connections.")
}
},
ApplicationListener { event: Any ->
if (event is ApplicationFailedEvent) {
} else if (event is ApplicationFailedEvent) {
log.error("Application failed", event.exception)
}
}
Expand Down

0 comments on commit c47990b

Please sign in to comment.