MessageFormatter

class MessageFormatter(prefix: String)

Formats messages with a prefix and color.

Constructors

Link copied to clipboard
constructor(prefix: String)

Functions

Link copied to clipboard
fun confirm(message: String): String

Formats a message with the prefix and the message with the color green.

Link copied to clipboard
fun custom(prefixColor: ChatColor, messageColor: ChatColor, message: String): String

Formats a message with a custom prefix color, message color, and message.

Link copied to clipboard
fun debug(message: String): String

Formats a message with the prefix and the message being the color gray.

Link copied to clipboard
fun error(message: String): String

Formats a message with the prefix and the message being the color red.

Link copied to clipboard
fun info(message: String): String

Formats a message with the prefix being the color green and the message being the color white.

Link copied to clipboard
fun url(url: String): String

Formats a url

Link copied to clipboard
fun warn(message: String): String

Formats a message with the prefix and the message being the color yellow.