From 812e2361c9ea9472f22eb38c1c007a047b4be3ea Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Wed, 12 Jun 2024 11:34:24 +0200 Subject: [PATCH] erm --- .../kotlin/moe/jansel/platinum/Platinum.kt | 19 ++++++++++--------- src/main/resources/paper-plugin.yml | 4 ++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/kotlin/moe/jansel/platinum/Platinum.kt b/src/main/kotlin/moe/jansel/platinum/Platinum.kt index 35ee9fc..52772c4 100644 --- a/src/main/kotlin/moe/jansel/platinum/Platinum.kt +++ b/src/main/kotlin/moe/jansel/platinum/Platinum.kt @@ -28,14 +28,7 @@ class Platinum : JavaPlugin() { lateinit var version: String lateinit var hash: String - val webClient: HttpClient = HttpClient(CIO) { - install(ContentNegotiation) { - json(Json { ignoreUnknownKeys = true }) - } - install(UserAgent) { - agent = "https://git.jansel.moe/jreimers/Platinum (jansel@jansel.moe)" - } - } + lateinit var webClient: HttpClient } @@ -49,10 +42,18 @@ class Platinum : JavaPlugin() { props.load(getResource("build-vars.properties")) version = props.getProperty("version") hash = props.getProperty("gitCommit") - logger.info("Loading Platinum $version") + logger.info("Loading Platinum v$version") if (version.contains("SNAPSHOT")) { logger.info("Git Commit: $hash") } + webClient = HttpClient(CIO) { + install(ContentNegotiation) { + json(Json { ignoreUnknownKeys = true }) + } + install(UserAgent) { + agent = "https://git.jansel.moe/jreimers/Platinum v$version(jansel@jansel.moe)" + } + } } override fun onDisable() { diff --git a/src/main/resources/paper-plugin.yml b/src/main/resources/paper-plugin.yml index 55a57e1..5405f29 100644 --- a/src/main/resources/paper-plugin.yml +++ b/src/main/resources/paper-plugin.yml @@ -8,8 +8,8 @@ description: Yet another rewrite of my old datasync Plugin website: https://git.jansel.moe/jreimers/platinum commands: - palladium: - usage: /palladium [args] + platinum: + usage: /platinum [args] permissions: