Message

data class Message(    var lines: List<String>,     val audienceProvider: AudienceProvider,     var tagResolverFactory: TagResolverFactory,     var concerns: Player? = null,     val customTagResolvers: MutableList<TagResolver> = mutableListOf())

Represents a message containing of zero or more lines

See com.github.spigotbasics.core.config.SavedConfig.getMessage on how to obtain a message

Constructors

Link copied to clipboard
constructor(    lines: List<String>,     audienceProvider: AudienceProvider,     tagResolverFactory: TagResolverFactory,     concerns: Player? = null,     customTagResolvers: MutableList<TagResolver> = mutableListOf())

Create a new message

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var concerns: Player?
Link copied to clipboard
Link copied to clipboard

Lines of the message

Functions

Link copied to clipboard
fun concerns(player: Player?): Message
Link copied to clipboard
fun map(transform: (String) -> String): Message

Applies the given transform to each line of the message

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sendToPlayer(player: Player)
Link copied to clipboard
fun sendToPlayerActionBar(player: Player)
Link copied to clipboard
fun sendToPlayers(players: Collection<Player>)
Link copied to clipboard
fun sendToSender(sender: CommandSender)
Link copied to clipboard
fun serialize(): SerializedMiniMessage
Link copied to clipboard
fun tagMessage(tag: String, value: Message): Message
Link copied to clipboard
fun tagMiniMessage(tag: String, value: SerializedMiniMessage): Message
Link copied to clipboard
fun tagParsed(tag: String, value: String): Message
Link copied to clipboard
fun tags(vararg tags: Pair<String, Any>): Message
fun tags(tags: Map<String, String>): Message
Link copied to clipboard
fun tagUnparsed(tag: String, value: String): Message
Link copied to clipboard
fun toBungeeComponents(): Array<BaseComponent>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String