containsAnimations

abstract fun containsAnimations(text: String): Boolean

Checks if the input text contains any registered animations following the pattern ${my-animation} as well as any animations or scripts following the pattern ${my-animation:my-parameter}. Though the animation or script 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