public final class TitleUpdater
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
update(org.bukkit.entity.Player player,
java.lang.Object title)
Updates the title of the specified player with the given title object.
|
public static void update(org.bukkit.entity.Player player,
java.lang.Object title)
title must be either String, kyori's Component or JsonElement.
Checks if the server is a Paper spigot, above 1.16+ and has kyori's Component class in the classpath.
player - the player whose title will be updated. Cannot be null.title - the new title to set for the player. Cannot be null.