sendFormattedTitle

open override fun SpigotPlayer.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).

This method provides a customizable title display with configurable transition timings for fading in, staying, and fading out.

Parameters

title

The title text to be displayed. Defaults to an empty string if not provided.

subtitle

The subtitle text to be displayed. Defaults to an empty string if not provided.

fadeIn

The duration (in ticks) for the fade-in animation. Must be between 0 and 72,000.

stay

The duration (in ticks) that the title will remain visible. Must be between 0 and 72,000.

fadeOut

The duration (in ticks) for the fade-out animation. Must be between 0 and 72,000.


open override fun SpigotPlayer.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.

Parameters

title

The main title text to be displayed. Defaults to an empty string.

subtitle

The subtitle text to be displayed below the main title. Defaults to an empty string.