Feedback

class Feedback(val message: List<String>)

Represents a preformatted message that can be sent to players, the console, or any CommandSender.

The message is parsed using MiniMessage (and optionally PlaceholderAPI if supported). It is cached as an Adventure Component for performance.

Constructors

Link copied to clipboard
constructor(line: String)

Creates a Feedback instance from a single MiniMessage-formatted string.

constructor(vararg lines: String)

Creates a Feedback instance from multiple lines using vararg.

constructor(message: List<String>)

Properties

Link copied to clipboard

Whether the message contains multiple lines.

Link copied to clipboard

The raw message string, written in MiniMessage format.

Functions

Link copied to clipboard
fun broadcast()

Sends the message to all online players.

fun broadcast(center: Location, radius: Double)

Sends the message to all players near a given location within a radius.

Link copied to clipboard
fun broadcastIf(condition: Boolean)

Sends the message to all online players if the given condition is true.

Link copied to clipboard
fun send()

Sends the message to the console.

fun send(vararg audience: Audience)

Sends the message to multiple players.

fun send(audience: Iterable<Audience>)

Sends the message to a collection of players.

fun send(center: Player, radius: Double)

Sends the message to players near a given player within a certain radius.

Link copied to clipboard
fun sendIf(condition: Boolean, audience: Audience)

Sends the message to the player only if the given condition is true.