Companion

object Companion

Properties

Link copied to clipboard
const val NORMAL_LINE: String

Functions

Link copied to clipboard
fun asText(component: Component): String

Converts a Component to a string representation using MiniMessage serialization.

Link copied to clipboard
fun centerMessage(message: String?): String

Centers a message by adding appropriate spacing.

Link copied to clipboard
fun color(input: String, target: Player? = null): Component

Color a string using the MiniMessage API or Bukkit's legacy color codes You can use placeholders using PlaceholderAPI but you need to set it up in your plugin @onEnable first using SystemCore.placeHolderAPIHook(true)

fun color(messages: List<String>, target: Player? = null): List<Component>

Colors a list of strings using MiniMessage API or Bukkit's legacy color codes.

Link copied to clipboard
fun formatNumber(value: Any): String

Formats a number (Int or String) into a string with thousands separators.

Link copied to clipboard

Checks if a given string represents an integer.

Link copied to clipboard
fun normalize(value: Number, max: Number): Double

Normalizes a number to a range of 0.0 to 1.0 based on a maximum value.

Link copied to clipboard
fun parseTime(seconds: Int): String

Converts seconds into a formatted time string (HH:MM:SS).

Link copied to clipboard
fun progressBar(value: Double, max: Double, length: Int = 10, symbol: String = "|", filledColor: String = "#e6ff59", emptyColor: String = "#AAAAAA"): String

Creates a progress bar string representation.

fun progressBar(value: Int, max: Int, length: Int = 10, symbol: String = "|", filledColor: String = "#e6ff59", emptyColor: String = "#AAAAAA"): String

Creates a progress bar string representation with integer values.

Link copied to clipboard

Capitalizes the first letter of a string and converts the rest to lowercase.