Skip to content

Commit

Permalink
fix: kotlins split doesnt actually use regex...
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Oct 3, 2024
1 parent 3d12636 commit cc3e70d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ public class ServerStatusPreviewManager(
}

private fun lookupKickMessage(serverAddress: String): String {
return kickPreviews.get(serverAddress.split("\\.")[0]) ?: "<red>You cant join here!"
return kickPreviews.get(serverAddress.split(".")[0]) ?: "<red>You cant join here!"
}

private fun lookupMotd(serverAddress: String): String {
return motdPreviews.get(serverAddress.split("\\.")[0]) ?: "<rainbow>MiniMessage is cool!"
return motdPreviews.get(serverAddress.split(".")[0]) ?: "<rainbow>MiniMessage is cool!"
}

public fun initializeKickPreview(input: String): String {
Expand Down

0 comments on commit cc3e70d

Please sign in to comment.