spigot actionbar

Java
player.spigot().sendMessage(
  ChatMessageType.ACTION_BAR,
  new TextComponent("This message will be in the Action Bar"));
Source

Also in Java: