From 44d96925e9dd6194786dbcd0dd68869e2a2ac9e4 Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Fri, 14 Jun 2024 09:00:00 +0200 Subject: [PATCH] better readability --- src/main/kotlin/moe/jansel/platinum/Platinum.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/moe/jansel/platinum/Platinum.kt b/src/main/kotlin/moe/jansel/platinum/Platinum.kt index 2ca05fc..80c8c8c 100644 --- a/src/main/kotlin/moe/jansel/platinum/Platinum.kt +++ b/src/main/kotlin/moe/jansel/platinum/Platinum.kt @@ -53,9 +53,6 @@ class Platinum : JavaPlugin() { version = props.getProperty("version") hash = props.getProperty("gitCommit") logger.info("Loading Platinum v$version") - if (version.contains("SNAPSHOT")) { - logger.info("Local Git Commit: $hash") - } webClient = HttpClient(CIO) { install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) @@ -65,6 +62,7 @@ class Platinum : JavaPlugin() { } } if (version.contains("SNAPSHOT")) { + logger.info("Local Git Commit: $hash") logger.info("Getting remote Git Commit...") runBlocking { val res = webClient.get("https://git.jansel.moe/") { @@ -76,9 +74,11 @@ class Platinum : JavaPlugin() { val apires: List = res.body() logger.info("Remote hash: ${apires[0].sha}") if (apires[0].sha == hash) { - componentLogger.info(Component.text("Commit Hashes match, ur on the latest snapshot version", TextColor.color(0,255,0))) + componentLogger.info(Component.text("Commit Hashes match, ur on the latest snapshot version", + TextColor.color(0,255,0))) } else { - componentLogger.info(Component.text("Commit Hashes mismatch, either you\'re using a commit that isnt pushed yet or you\'re out of date", TextColor.color(255,0,0))) + componentLogger.info(Component.text("Commit Hashes mismatch, either you\'re using a commit that isnt pushed yet or you\'re out of date", + TextColor.color(255,0,0))) } } }