containsPlaceholders

abstract fun containsPlaceholders(text: String): Boolean

Checks if the input text contains any registered placeholders following the pattern %{my-placeholder} as well as any placeholders following the pattern %{my-placeholder:my-parameter}. Though the placeholder does need to be registered with the plugin.

Return

true if the text returned with a match and false if it doesn't.

Since

2.0.0

Parameters

text

The text that will be matched to the patterns.

Sources

Link copied to clipboard