From cc3e70d348fa9d6bd52f94b50824fb4e367a13ca Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Thu, 3 Oct 2024 15:56:41 +0200 Subject: [PATCH] fix: kotlins split doesnt actually use regex... --- .../jvm/minimessage/preview/ServerStatusPreviewManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jvmMain/kotlin/net/kyori/adventure/webui/jvm/minimessage/preview/ServerStatusPreviewManager.kt b/src/jvmMain/kotlin/net/kyori/adventure/webui/jvm/minimessage/preview/ServerStatusPreviewManager.kt index 1512593..72e28de 100644 --- a/src/jvmMain/kotlin/net/kyori/adventure/webui/jvm/minimessage/preview/ServerStatusPreviewManager.kt +++ b/src/jvmMain/kotlin/net/kyori/adventure/webui/jvm/minimessage/preview/ServerStatusPreviewManager.kt @@ -110,11 +110,11 @@ public class ServerStatusPreviewManager( } private fun lookupKickMessage(serverAddress: String): String { - return kickPreviews.get(serverAddress.split("\\.")[0]) ?: "You cant join here!" + return kickPreviews.get(serverAddress.split(".")[0]) ?: "You cant join here!" } private fun lookupMotd(serverAddress: String): String { - return motdPreviews.get(serverAddress.split("\\.")[0]) ?: "MiniMessage is cool!" + return motdPreviews.get(serverAddress.split(".")[0]) ?: "MiniMessage is cool!" } public fun initializeKickPreview(input: String): String {