Skip to main content

Documentation Index

Fetch the complete documentation index at: https://kotly.voxray.su/llms.txt

Use this file to discover all available pages before exploring further.

Kotly предоставляет удобное API для красивого написание кода.
package kotly.util.text

fun String.minimessage() = MiniMessage.miniMessage().deserialize(this)
fun String.amperstand() = LegacyComponentSerializer.legacyAmpersand().deserialize(this)
fun String.paragraph() = LegacyComponentSerializer.legacySection().deserialize(this)

fun String.sha256(): String {
    val digest = MessageDigest.getInstance("SHA-256")
    val hashBytes = digest.digest(this.toByteArray(Charsets.UTF_8))

    return hashBytes.joinToString("") { "%02x".format(it) }
}