Skip to content

Animations

Animate Title

kotlin
manager.animateTitle(
    player = player,
    frames = listOf("Lobby", "Queue", "Arena"),
    intervalMs = 500
)
java
manager.animateTitle(
    player,
    List.of("Lobby", "Queue", "Arena"),
    500
);

Animate One Line

kotlin
manager.animateLine(
    player = player,
    lineIndex = 0,
    frames = listOf("Player: Steve", "Player: STEVE"),
    intervalMs = 250
)
java
manager.animateLine(
    player,
    0,
    List.of("Player: Steve", "Player: STEVE"),
    250
);

Animate Replacers

kotlin
manager.animateReplacers(player, intervalMs = 1000) {
    mapOf(
        "{online}" to onlinePlayerCount().toString(),
        "{coins}" to getCoins(player).toString()
    )
}
java
manager.animateReplacers(player, 1000, () -> Map.of(
    "{online}", Integer.toString(onlinePlayerCount()),
    "{coins}", Integer.toString(getCoins(player))
));

Stop Running Animations

kotlin
manager.stopAnimations(player)
java
manager.stopAnimations(player);

Released under the MIT License.