Title messages

A title message is the message shown in the middle of a player's screen. A title consists of a title and a subtitle, both of which can be sent individually. Timings sent before the message will control how long the titles will stay on the players' screens.

Sending a title

api.sendTitle(player, "My message", fadeIn, stay, fadeOut);
api.sendTitleWithPlaceholders(player, "My message", fadeIn, stay, fadeOut);

Sending a subtitle

api.sendSubtitle(player, "My message");
api.sendSubtitleWithPlaceholders(player, "My message");

Clearing titles before their stay time is over

api.clearTitles(player);
api.clearTitle(player);
api.clearSubtitle(player);