SpigotMC/BungeeCord — pull request #1203 by Minecrell (2014-09-03 16:39:09+00:00)
Title: Add title and player list header/footer API.

This adds a useable API for the titles and the player tab list header/footer for BungeeCord. (See #1201)

![](http://i.imgur.com/sg2bIu4.png)

The code for this example would be like this:
```java
public void example(ProxiedPlayer player) {
player.setTabHeader(
new ComponentBuilder(getProxy().getName()).color(ChatColor.RED).bold(true)
.append("\n by md_5 and thinkofdeath ").bold(false).color(ChatColor.GREEN).create(),
new ComponentBuilder("").create() // Empty footer
);

player.resetTitle(); // Reset title settings to default values
player.sendTitle(new ComponentBuilder(getProxy().getName()).color(ChatColor.RED).create(),
new ComponentBuilder("by md_5 and thinkofdeath").color(ChatColor.GREEN).create(),
20, Integer.MAX_VALUE, 20); // Stay for a long time and about 1 second for fade in and fade out
}
```

The JavaDocs and method names are not perfect, so if you have any suggestion feel free to write it here and I will change it. If you want me to split both API additions I can do that, however I created them together because they use the same base code. :)