TitleAPI User Friendly, JSON Free

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);

}

 

 


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    277023
  • Created
    Sep 4, 2017
  • Last Released File
    Sep 9, 2017
  • Total Downloads
    615
  • License

Categories

Members

Recent Files