VitalUtils

interface VitalUtils<CS, P : CS>

Inheritors

Types

Link copied to clipboard

Object representing essential utility functions for managing BungeeCord players and commands.

Link copied to clipboard
object Companion

Defines utilities for general purposes across multiple platforms.

Link copied to clipboard

Utility object providing Spigot-specific implementations of the VitalUtils abstraction.

Functions

Link copied to clipboard
abstract fun broadcastAction(predicate: Predicate<P> = Predicate { true }, action: Consumer<P>)

Broadcasts an action to a collection of players based on a specified condition.

Link copied to clipboard
open fun broadcastFormattedActionBar(message: String, predicate: Predicate<P> = Predicate { true })

Broadcasts a formatted action bar message to all players satisfying the given predicate.

Link copied to clipboard
open fun broadcastFormattedMessage(message: String, predicate: Predicate<P> = Predicate { true })

Broadcasts a formatted message to all players satisfying the given predicate.

Link copied to clipboard
open fun broadcastFormattedPersistentTitle(title: String = "", subtitle: String = "", fadeIn: @Range(from = 0, to = 72000) Int, predicate: Predicate<P> = Predicate { true })

Sends a persistent formatted title and subtitle to all players that satisfy the specified predicate. The title remains displayed with the specified fade-in duration.

Link copied to clipboard
open fun broadcastFormattedTitle(title: String = "", subtitle: String = "", predicate: Predicate<P>)

Broadcasts a formatted title and subtitle to all players satisfying the given predicate.

open fun broadcastFormattedTitle(title: String = "", subtitle: String = "", fadeIn: @Range(from = 0, to = 72000) Int, stay: @Range(from = 0, to = 72000) Int, fadeOut: @Range(from = 0, to = 72000) Int, predicate: Predicate<P> = Predicate { true })

Broadcasts a formatted title to all eligible recipients.

Link copied to clipboard
abstract fun P.sendFormattedActionBar(message: String)

Sends a formatted action bar message to the current player.

Link copied to clipboard
abstract fun CS.sendFormattedMessage(message: String)

Sends a formatted message to the current player or client system (CS).

Link copied to clipboard
abstract fun P.sendFormattedPersistentTitle(title: String = "", subtitle: String = "", fadeIn: @Range(from = 0, to = 72000) Int)

Sends a formatted, persistent title and subtitle to the current player or client system (P).

Link copied to clipboard
abstract fun P.sendFormattedTitle(title: String = "", subtitle: String = "")

Sends a formatted title and subtitle to the current player. The title and subtitle are displayed in the player's title bar.

abstract fun P.sendFormattedTitle(title: String = "", subtitle: String = "", fadeIn: @Range(from = 0, to = 72000) Int, stay: @Range(from = 0, to = 72000) Int, fadeOut: @Range(from = 0, to = 72000) Int)

Sends a formatted title and subtitle to the current player or client system (P).