replaceText

abstract fun replaceText(player: Player, text: String): String

Replaces the text with any placeholders that follow the pattern %{my-placeholder} as well as any placeholders following the pattern %{my-placeholder:my-parameter}.

If PlaceholderAPI is installed and enabled, any placeholders available within PlaceholderAPI will be replaced before TitleManager replaces its own.

Return

The input text with all available placeholders replaced. If no placeholders were found the input text will be returned instead.

Since

2.0.0

Parameters

player

The player that any player specific placeholders will be matched to.

text

The text that will be replaced.

Sources

Link copied to clipboard