TitleAPI User Friendly, JSON Free

TitleAPI User Friendly, JSON Free

300 Downloads

To be clear, this plugin is for developers who want to code their own plugins.  This has no features that will trigger on its own.

This will allow developers to send titles without having to use JSON.  To use: create an instance of TitleAPI:

TitleAPI titleAPI = new TitleAPI();

Then, you can call the method sendTitle, its parameters are as follows:

Player p, String title, String subtitle, int fadeInSeconds, int staySeconds, int fadeOutSeconds

You can use the method in an event handler like so:

TitleAPI titleInstance = new TitleAPI();

@EventHandler

public void onPlayerJoin(PlayerJoinEvent e) {

    Player p = e.getPlayer();

    titleInstance.sendTitle(p, "&6&lHELLO,", "and welcome to my server!", 1, 5, 1);

}