Class ChatCompat
java.lang.Object
io.github.sefiraat.slimetinker.utils.ChatCompat
Version-safe delivery of a BungeeCord chat
BaseComponent.
Modern servers expose Player.spigot().sendMessage(BaseComponent); that
path is taken reflectively when available. On servers lacking it the supplied
legacy text is sent through CommandSender.sendMessage(String) so the message
still reaches the player.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsendMessage(org.bukkit.entity.Player player, net.md_5.bungee.api.chat.BaseComponent component, String legacyFallback)
-
Method Details
-
sendMessage
public static void sendMessage(@Nonnull org.bukkit.entity.Player player, @Nonnull net.md_5.bungee.api.chat.BaseComponent component, @Nonnull String legacyFallback)
-